diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-30 05:19:26 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-30 05:19:26 +0000 |
commit | 3a9eb44f2906e44ca29ae2d9df56fb9824ef7d05 (patch) | |
tree | d06bef3552e78ed65ac3efd7cbcfb0918784a964 /lib/Frontend/RewriteBlocks.cpp | |
parent | 48d14a222276fad5279e994d1a062f36ae6fcbce (diff) |
Pass an ASTContext into Stmt::printPretty.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteBlocks.cpp')
-rw-r--r-- | lib/Frontend/RewriteBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/RewriteBlocks.cpp b/lib/Frontend/RewriteBlocks.cpp index 6d0f10def2..9d73d90554 100644 --- a/lib/Frontend/RewriteBlocks.cpp +++ b/lib/Frontend/RewriteBlocks.cpp @@ -724,7 +724,7 @@ std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) { BlockCall += "((struct __block_impl *)"; std::string closureExprBufStr; llvm::raw_string_ostream closureExprBuf(closureExprBufStr); - Exp->getCallee()->printPretty(closureExprBuf); + Exp->getCallee()->printPretty(closureExprBuf, *Context); BlockCall += closureExprBuf.str(); BlockCall += ")->FuncPtr)"; @@ -735,7 +735,7 @@ std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) { E = Exp->arg_end(); I != E; ++I) { std::string syncExprBufS; llvm::raw_string_ostream Buf(syncExprBufS); - (*I)->printPretty(Buf); + (*I)->printPretty(Buf, *Context); BlockCall += ", " + Buf.str(); } return BlockCall; |