summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ASTResultSynthesizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Expression/ASTResultSynthesizer.cpp')
-rw-r--r--lldb/source/Expression/ASTResultSynthesizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp
index 8838fddf8ff..f03430bc491 100644
--- a/lldb/source/Expression/ASTResultSynthesizer.cpp
+++ b/lldb/source/Expression/ASTResultSynthesizer.cpp
@@ -118,11 +118,11 @@ ASTResultSynthesizer::SynthesizeResult (FunctionDecl *FunDecl)
std::string s;
raw_string_ostream os(s);
- function_decl->print(os);
+ Ctx.getTranslationUnitDecl()->print(os);
os.flush();
- log->Printf("Function AST before transforming:\n%s", s.c_str());
+ log->Printf("AST context before transforming:\n%s", s.c_str());
}
Stmt *function_body = function_decl->getBody();
OpenPOWER on IntegriCloud