From: Steve Naroff Date: Sat, 4 Oct 2008 17:45:51 +0000 (+0000) Subject: Cut/paste error...need to use the expression "name" for member references (or other... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b65a4f1cc2aa31eae1a413d3db94210c6b887914;p=clang 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 e22f1e5385..7f9b8ea952 100644 --- a/Driver/RewriteBlocks.cpp +++ b/Driver/RewriteBlocks.cpp @@ -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;