aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-12-08 14:25:42 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-12-08 14:25:51 +0800
commit4168efe1b2243ed31c30c82583a18bff78cfa076 (patch)
tree763882bf836f2127a5673e46e555aa742e9e60c9 /clang/lib/Sema/SemaModule.cpp
parent6fe577b1c1e4b5a44f17cb668c5c346527bd08bd (diff)
downloadllvm-4168efe1b2243ed31c30c82583a18bff78cfa076.zip
llvm-4168efe1b2243ed31c30c82583a18bff78cfa076.tar.gz
llvm-4168efe1b2243ed31c30c82583a18bff78cfa076.tar.bz2
[NFC] Fix C++20 module test in PPC and warning
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r--clang/lib/Sema/SemaModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp
index 34a6c6e..f497199 100644
--- a/clang/lib/Sema/SemaModule.cpp
+++ b/clang/lib/Sema/SemaModule.cpp
@@ -712,7 +712,8 @@ Module *Sema::PushGlobalModuleFragment(SourceLocation BeginLoc,
// Enter the scope of the global module.
ModuleScopes.push_back({BeginLoc, GlobalModule,
/*ModuleInterface=*/false,
- /*ImplicitGlobalModuleFragment=*/IsImplicit});
+ /*ImplicitGlobalModuleFragment=*/IsImplicit,
+ /*VisibleModuleSet*/{}});
VisibleModules.setVisible(GlobalModule, BeginLoc);
return GlobalModule;