From b65a4f1cc2aa31eae1a413d3db94210c6b887914 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Sat, 4 Oct 2008 17:45:51 +0000 Subject: [PATCH] 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 --- Driver/RewriteBlocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1