[cfe-commits] r156035 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed May 2 16:53:46 PDT 2012
Author: fjahanian
Date: Wed May 2 18:53:46 2012
New Revision: 156035
URL: http://llvm.org/viewvc/llvm-project?rev=156035&view=rev
Log:
modern objective-c translator: Fix destructor def.
for __NSContainer_literal.
Modified:
cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=156035&r1=156034&r2=156035&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Wed May 2 18:53:46 2012
@@ -5814,7 +5814,7 @@
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";
More information about the cfe-commits
mailing list