]> granicus.if.org Git - clang/commitdiff
objc rewriter - set the flag passed to _Block_object_assign/_Block_object_dispose...
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 30 Jul 2011 01:07:55 +0000 (01:07 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 30 Jul 2011 01:07:55 +0000 (01:07 +0000)
for copying a captured block object. // rdar://9846759

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

lib/Rewrite/RewriteObjC.cpp

index a8fefb01656d2f2e0fc534303b004f90ca2535d0..3e57e12db7e3617e8fa9a0e9a18f37b95fe37bb6 100644 (file)
@@ -4260,7 +4260,7 @@ std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
     if (BlockByRefDeclsPtrSet.count((*I)))
       S += ", " + utostr(BLOCK_FIELD_IS_BYREF) + "/*BLOCK_FIELD_IS_BYREF*/);";
     else
-      S += ", " + utostr(BLOCK_FIELD_IS_OBJECT) + "/*BLOCK_FIELD_IS_OBJECT*/);";
+      S += ", " + utostr(BLOCK_FIELD_IS_BLOCK) + "/*BLOCK_FIELD_IS_BLOCK*/);";
   }
   S += "}\n";
   
@@ -4276,7 +4276,7 @@ std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
     if (BlockByRefDeclsPtrSet.count((*I)))
       S += ", " + utostr(BLOCK_FIELD_IS_BYREF) + "/*BLOCK_FIELD_IS_BYREF*/);";
     else
-      S += ", " + utostr(BLOCK_FIELD_IS_OBJECT) + "/*BLOCK_FIELD_IS_OBJECT*/);";
+      S += ", " + utostr(BLOCK_FIELD_IS_BLOCK) + "/*BLOCK_FIELD_IS_BLOCK*/);";
   }
   S += "}\n";
   return S;