[cfe-commits] [PATCH] Fix PR14514: Call destructor automatically after a throw

Eli Friedman eli.friedman at gmail.com
Mon Dec 17 18:14:56 PST 2012


On Mon, Dec 17, 2012 at 5:53 PM, WenHan Gu (谷汶翰) <wenhan.gu at mediatek.com> wrote:
> OK, thanks.
> Patch set 3 uploaded.

@@ -1367,6 +1367,9 @@ static void emitPartialArrayDestroy(CodeGenFunction &CGF,
     type = arrayType->getElementType();
   }

+  if (type.isDestructedType() == QualType::DK_none)
+    return; // Check again for nest array
+

That doesn't help; you're still pushing the cleanup.

-Eli




More information about the cfe-commits mailing list