diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-02 23:53:46 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-02 23:53:46 +0000 |
commit | 13a9c02b54f185da611d9b0443017e22d4d46eb4 (patch) | |
tree | 1766407cfcb4cff0e4cba2b6fe2e65b5ceb9d957 | |
parent | 82129e25c8d26d933771bc37aa0e0ed2edd131b4 (diff) |
modern objective-c translator: Fix destructor def.
for __NSContainer_literal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156035 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Rewrite/RewriteModernObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Rewrite/RewriteModernObjC.cpp b/lib/Rewrite/RewriteModernObjC.cpp index 410e68908d..05883d43df 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"; |