diff options
| author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-05-23 10:02:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 10:02:26 +0100 |
| commit | 5c3a99760274a06f8cb7e7247ce69c2fde5fbf2a (patch) | |
| tree | cd87a6e9201443b20a57baa720a0baf421abf8c2 /clang/lib/CodeGen/CGClass.cpp | |
| parent | bb7e5597407884dbbd1d45570fa73dea168545f5 (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.cpp | 1 |
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(); |
