Skip to content

Commit 6980f6e

Browse files
committed
[clang] Experimental fix to assertion failure on Windows
1 parent 3d9d9e7 commit 6980f6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Frontend/FrontendAction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
985985

986986
// Set the shared objects, these are reset when we finish processing the
987987
// file, otherwise the CompilerInstance will happily destroy them.
988+
CI.setVirtualFileSystem(AST->getFileManager().getVirtualFileSystemPtr());
988989
CI.setFileManager(&AST->getFileManager());
989990
CI.setSourceManager(&AST->getSourceManager());
990991
CI.setPreprocessor(AST->getPreprocessorPtr());

0 commit comments

Comments
 (0)