diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp index 410e68908d1f9c9a5308d81db33078d70428a7f3..05883d43df25c5f06435b94dcbd2f3ec71d7c76c 100644 --- a/lib/Rewrite/RewriteModernObjC.cpp +++ b/lib/Rewrite/RewriteModernObjC.cpp @@ -5814,7 +5814,7 @@ void RewriteModernObjC::Initialize(ASTContext &context) { Preamble += "\t arr[i] = va_arg(marker, void *);\n"; Preamble += "\tva_end( marker );\n"; Preamble += " };\n"; - Preamble += " __NSContainer_literal() {\n"; + Preamble += " ~__NSContainer_literal() {\n"; Preamble += "\tdelete[] arr;\n"; Preamble += " }\n"; Preamble += "};\n";