]> granicus.if.org Git - clang/commitdiff
Cut/paste error...need to use the expression "name" for member references (or other...
authorSteve Naroff <snaroff@apple.com>
Sat, 4 Oct 2008 17:45:51 +0000 (17:45 +0000)
committerSteve Naroff <snaroff@apple.com>
Sat, 4 Oct 2008 17:45:51 +0000 (17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57054 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteBlocks.cpp

index e22f1e53850cb456d45533546a31dd64b8f89011..7f9b8ea952788f5b5316c14d5403722aebe527cd 100644 (file)
@@ -702,7 +702,7 @@ std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) {
   
   // 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;