summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-02 23:42:12 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-02 23:42:12 +0000
commit93ebfa6139bbca4d446c7343e3afc8e5ec777484 (patch)
tree1f87bec9019dc12c7cff57ff34856cf71334ce93 /lib/Sema/SemaDecl.cpp
parent15de72cf580840c61e5704c2f8a2b56f9d0638e1 (diff)
downloadclang-93ebfa6139bbca4d446c7343e3afc8e5ec777484.tar.gz
clang-93ebfa6139bbca4d446c7343e3afc8e5ec777484.tar.bz2
clang-93ebfa6139bbca4d446c7343e3afc8e5ec777484.tar.xz
When we treat an #include or #import as a module import, create an
implicit ImportDecl in the translation unit to record the presence of the import. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 01c7906e80..fdb2cf5d96 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -9893,7 +9893,8 @@ Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr,
DeclResult Sema::ActOnModuleImport(SourceLocation ImportLoc, ModuleIdPath Path) {
Module *Mod = PP.getModuleLoader().loadModule(ImportLoc, Path,
- Module::AllVisible);
+ Module::AllVisible,
+ /*IsIncludeDirective=*/false);
if (!Mod)
return true;