diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-04-17 16:23:41 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-04-17 22:48:56 -0700 |
commit | fc76b4ad3da3c1f5fdc34370a55d613b3ca7af73 (patch) | |
tree | 1341b19511318fd1b81294c5686570ae624dc32b /clang/lib/Frontend/CompilerInstance.cpp | |
parent | c8248dc3bb36bea61ac6d87bd02c39c6a781b011 (diff) | |
download | llvm-fc76b4ad3da3c1f5fdc34370a55d613b3ca7af73.zip llvm-fc76b4ad3da3c1f5fdc34370a55d613b3ca7af73.tar.gz llvm-fc76b4ad3da3c1f5fdc34370a55d613b3ca7af73.tar.bz2 |
Rename IsMissingRequirement to IsUnimportable and set it for shadowed
modules too.
This more accurately reflects the semantics of this flag, as distinct
from "IsAvailable", which (in an explicit modules world) only describes
whether a module is buildable, not whether it's importable.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 470429c..0140a75 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -1576,7 +1576,7 @@ bool CompilerInstance::loadModuleFile(StringRef FileName) { Stack.push_back(M); while (!Stack.empty()) { Module *Current = Stack.pop_back_val(); - if (Current->IsMissingRequirement) continue; + if (Current->IsUnimportable) continue; Current->IsAvailable = true; Stack.insert(Stack.end(), Current->submodule_begin(), Current->submodule_end()); |