================
@@ -414,9 +414,11 @@ template <class Derived> struct GenFuncBase {
                     StartAddrs[I].getAlignment().alignmentAtOffset(EltSize));
 
     EltQT = IsVolatile ? EltQT.withVolatile() : EltQT;
-    this->asDerived().visitWithKind(FK, EltQT, nullptr, CharUnits::Zero(),
-                                    NewAddrs);
-
+    {
+      CodeGenFunction::RunCleanupsScope Scope(CGF);
----------------
efriedma-quic wrote:

Can we move the RunCleanupsScope somewhere closer in the callstack to where 
it's actually necessary?

https://github.com/llvm/llvm-project/pull/235334
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to