================
@@ -219,18 +308,52 @@ class alignas(EHScopeStack::ScopeStackAlignment) 
EHCleanupScope
     assert(cleanupBits.cleanupSize == cleanupSize && "cleanup size overflow");
   }
 
-  void destroy() {}
   // Objects of EHCleanupScope are not destructed. Use destroy().
   ~EHCleanupScope() = delete;
 
+  void destroy() {
+    if (auxAllocas)
+      delete auxAllocas;
+    delete extInfo;
----------------
HendrikHuebner wrote:

TODO: smart poiners

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

Reply via email to