summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-05-23 10:02:26 +0100
committerGitHub <noreply@github.com>2025-05-23 10:02:26 +0100
commit5c3a99760274a06f8cb7e7247ce69c2fde5fbf2a (patch)
treecd87a6e9201443b20a57baa720a0baf421abf8c2 /clang/lib/CodeGen/CGClass.cpp
parentbb7e5597407884dbbd1d45570fa73dea168545f5 (diff)
[KeyInstr][Clang] Member initalization atom (#134640)
This patch is part of a stack that teaches Clang to generate Key Instructions metadata for C and C++. RFC: https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668 The feature is only functional in LLVM if LLVM is built with CMake flag LLVM_EXPERIMENTAL_KEY_INSTRUCTIONs. Eventually that flag will be removed.
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 6beb2bccfeae..251b059c256f 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1338,6 +1338,7 @@ void CodeGenFunction::EmitCtorPrologue(const CXXConstructorDecl *CD,
assert(!Member->isBaseInitializer());
assert(Member->isAnyMemberInitializer() &&
"Delegating initializer on non-delegating constructor");
+ ApplyAtomGroup Grp(getDebugInfo());
CM.addMemberInitializer(Member);
}
CM.finish();