Cut/paste error...need to use the expression "name" for member references (or other complex expressions that can embed a block pointer type)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57054 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/RewriteBlocks.cpp b/Driver/RewriteBlocks.cpp
index e22f1e5..7f9b8ea 100644
--- a/Driver/RewriteBlocks.cpp
+++ b/Driver/RewriteBlocks.cpp
@@ -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;