Skip to content

Commit acc967b

Browse files
committed
Remove assert that path exists on file system
This would trigger when path prefixes are remapped, as the buffer identifier is the remapped path, not the path on the file system. There is no easy way to recover the original path, so drop the assert.
1 parent d69c021 commit acc967b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/ClangImporter/ClangSourceBufferImporter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ SourceLoc ClangSourceBufferImporter::resolveSourceLocation(
5858
// different contents in different modules, despite the same name.
5959
auto IDOpt = swiftSourceManager.getIDForBufferIdentifier(bufIdent);
6060
if (IDOpt.has_value() && clangSrcMgr.getFileEntryForID(clangFileID)) {
61-
CONDITIONAL_ASSERT(llvm::sys::fs::exists(bufIdent));
6261
mirrorID = IDOpt.value();
6362
} else
6463
mirrorID = swiftSourceManager.addNewSourceBuffer(std::move(mirrorBuffer));

0 commit comments

Comments
 (0)