[clang] 0ecbedc - Also move WeakRefReferences in CodeGenModule::moveLazyEmssionStates
Jun Zhang via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 9 22:12:47 PDT 2022
Author: Jun Zhang
Date: 2022-06-10T13:11:09+08:00
New Revision: 0ecbedc0986bd4b7b90a60a5f31d32337160d4c4
URL: https://github.com/llvm/llvm-project/commit/0ecbedc0986bd4b7b90a60a5f31d32337160d4c4
DIFF: https://github.com/llvm/llvm-project/commit/0ecbedc0986bd4b7b90a60a5f31d32337160d4c4.diff
LOG: Also move WeakRefReferences in CodeGenModule::moveLazyEmssionStates
I forgot this field in b8f9459715815fa055b3e1c5f970c616797dfcfb
Signed-off-by: Jun Zhang <jun at junz.org>
Added:
Modified:
clang/lib/CodeGen/CodeGenModule.h
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index b7c180f1c8859..1eaeeb880597e 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1499,6 +1499,8 @@ class CodeGenModule : public CodeGenTypeCache {
assert(WeakRefReferences.empty() &&
"Not all WeakRefRefs have been applied");
+ NewBuilder->WeakRefReferences = std::move(WeakRefReferences);
+
NewBuilder->TBAA = std::move(TBAA);
}
More information about the cfe-commits
mailing list