[clang] [KeyInstr][Clang] Catch variable init atom (PR #134641)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 09:04:10 PDT 2025
================
@@ -5055,6 +5055,7 @@ void ItaniumCXXABI::emitBeginCatch(CodeGenFunction &CGF,
// Emit the local.
CodeGenFunction::AutoVarEmission var = CGF.EmitAutoVarAlloca(*CatchParam);
+ ApplyAtomGroup Grp(CGF.getDebugInfo());
InitCatchParam(CGF, *CatchParam, var.getObjectAddress(CGF), S->getBeginLoc());
CGF.EmitAutoVarCleanups(var);
----------------
jmorse wrote:
Hmmm -- yes please for the braces, no worries about the tests. This is just about reducing the amount of potentially-unexpected behaviour
https://github.com/llvm/llvm-project/pull/134641
More information about the cfe-commits
mailing list