================
@@ -1105,19 +1105,24 @@ void CodeGenFunction::EmitNewArrayInitializer(
}
// Enter a partial-destruction Cleanup if necessary.
- if (needsEHCleanup(DtorKind)) {
+ if (DtorKind) {
+ AllocaTrackerRAII AllocaTracker(*this);
----------------
efriedma-quic wrote:
"AllocaTracker" seems like overkill; CreateTempAlloca has an out parameter to
access the created alloca, and I don't think you're creating any other allocas.
https://github.com/llvm/llvm-project/pull/85398
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits