[cfe-commits] r57054 - /cfe/trunk/Driver/RewriteBlocks.cpp

Steve Naroff snaroff at apple.com
Sat Oct 4 10:45:51 PDT 2008


Author: snaroff
Date: Sat Oct  4 12:45:51 2008
New Revision: 57054

URL: http://llvm.org/viewvc/llvm-project?rev=57054&view=rev
Log:
Cut/paste error...need to use the expression "name" for member references (or other complex expressions that can embed a block pointer type)

Modified:
    cfe/trunk/Driver/RewriteBlocks.cpp

Modified: cfe/trunk/Driver/RewriteBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteBlocks.cpp?rev=57054&r1=57053&r2=57054&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteBlocks.cpp (original)
+++ cfe/trunk/Driver/RewriteBlocks.cpp Sat Oct  4 12:45:51 2008
@@ -702,7 +702,7 @@
   
   // Add the arguments.
   BlockCall += "((struct __block_impl *)";
-  BlockCall += closureName;
+  BlockCall += closureExprBuf.str();
   for (CallExpr::arg_iterator I = Exp->arg_begin(), 
        E = Exp->arg_end(); I != E; ++I) {
     std::string syncExprBufS;





More information about the cfe-commits mailing list