]> granicus.if.org Git - clang/commitdiff
modern objective-c translator: Fix destructor def.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 2 May 2012 23:53:46 +0000 (23:53 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 2 May 2012 23:53:46 +0000 (23:53 +0000)
for __NSContainer_literal.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156035 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/RewriteModernObjC.cpp

index 410e68908d1f9c9a5308d81db33078d70428a7f3..05883d43df25c5f06435b94dcbd2f3ec71d7c76c 100644 (file)
@@ -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";