mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

Update the Preprocessor's VisibleModuleSet when typo-correction creates an implicit module import so that we won't accidentally write an invalid SourceLocation into the preamble AST. This would later lead to infinite recursion when loading the preamble AST because we use the value in ImportLocs to prevent visiting a module twice. rdar://problem/24440990 llvm-svn: 260543
23 lines
416 B
Plaintext
23 lines
416 B
Plaintext
// See vfsoverlay.yaml
|
|
module ModuleNeedsVFS {
|
|
header "ModuleNeedsVFS.h"
|
|
export *
|
|
}
|
|
framework module * { }
|
|
|
|
module ModuleUndef { header "module-undef.h" }
|
|
|
|
module PreambleWithImplicitImport {
|
|
module A {
|
|
header "preamble-with-implicit-import-A.h"
|
|
}
|
|
module B {
|
|
header "preamble-with-implicit-import-B.h"
|
|
export *
|
|
}
|
|
module C {
|
|
header "preamble-with-implicit-import-C.h"
|
|
export *
|
|
}
|
|
}
|