diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-05-16 10:36:08 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-05-16 10:47:53 +0800 |
commit | 7f37066915ab330f153ede708ddc610cf2cb7bdf (patch) | |
tree | d818c1150593ea83a586c21b0fd0845d781d2549 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 40c30543892aa6441eea075ba69864e79f5de82e (diff) | |
download | llvm-7f37066915ab330f153ede708ddc610cf2cb7bdf.zip llvm-7f37066915ab330f153ede708ddc610cf2cb7bdf.tar.gz llvm-7f37066915ab330f153ede708ddc610cf2cb7bdf.tar.bz2 |
Revert "[NFC] [C++20] [Modules] Refactor Sema::isModuleUnitOfCurrentTU into"
This reverts commit f109b1016801e2b0dbee278f3c517057c0b1d441 as required
in
https://github.com/llvm/llvm-project/commit/f109b1016801e2b0dbee278f3c517057c0b1d441#commitcomment-113477829.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d3cde11..7534304 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -529,7 +529,7 @@ static void setVisibilityFromDLLStorageClass(const clang::LangOptions &LO, } void CodeGenModule::Release() { - Module *Primary = getContext().getCurrentNamedModule(); + Module *Primary = getContext().getNamedModuleForCodeGen(); if (CXX20ModuleInits && Primary && !Primary->isHeaderLikeModule()) EmitModuleInitializers(Primary); EmitDeferred(); |