]> granicus.if.org Git - clang/commitdiff
Fix <rdar://problem/5976164> clang ObjC rewriter: for ... in enumeration inserts...
authorSteve Naroff <snaroff@apple.com>
Mon, 2 Jun 2008 20:23:21 +0000 (20:23 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 2 Jun 2008 20:23:21 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51880 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteObjC.cpp

index f679e554d092d4a962c12e693e05a46f8ef84be9..694456d670cf78752ba0e643d11cd2d30e424e19 100644 (file)
@@ -344,6 +344,7 @@ void RewriteObjC::Initialize(ASTContext &context) {
   Preamble += "void **itemsPtr;\n\t";
   Preamble += "unsigned long *mutationsPtr;\n\t";
   Preamble += "unsigned long extra[5];\n};\n";
+  Preamble += "__OBJC_RW_EXTERN void objc_enumerationMutation(struct objc_object *);\n";
   Preamble += "#define __FASTENUMERATIONSTATE\n";
   Preamble += "#endif\n";
   Preamble += "#ifndef __NSCONSTANTSTRINGIMPL\n";