summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ASTResultSynthesizer.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-07 23:18:13 +0000
committerSean Callanan <scallanan@apple.com>2011-10-07 23:18:13 +0000
commit880e680fa3ac5cb7c9d4a42ad69c5590b4cab0ac (patch)
tree1598270efe28fb84f765cd07d5bcfccb155975b9 /lldb/source/Expression/ASTResultSynthesizer.cpp
parent883ec9711530053a0f38e2cd3ef2b72af6e2ebea (diff)
downloadbcm5719-llvm-880e680fa3ac5cb7c9d4a42ad69c5590b4cab0ac.tar.gz
bcm5719-llvm-880e680fa3ac5cb7c9d4a42ad69c5590b4cab0ac.zip
Updated LLVM/Clang to pull in the latest ARM disassembler.
This involved minor changes to the way we report Objective-C methods, as well as cosmetic changes and added parameters for a variety of Clang APIs. llvm-svn: 141437
Diffstat (limited to 'lldb/source/Expression/ASTResultSynthesizer.cpp')
-rw-r--r--lldb/source/Expression/ASTResultSynthesizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp
index b2b593bbed9..db0714e238b 100644
--- a/lldb/source/Expression/ASTResultSynthesizer.cpp
+++ b/lldb/source/Expression/ASTResultSynthesizer.cpp
@@ -200,6 +200,10 @@ ASTResultSynthesizer::SynthesizeObjCMethodResult (ObjCMethodDecl *MethodDecl)
}
Stmt *method_body = MethodDecl->getBody();
+
+ if (!method_body)
+ return false;
+
CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body);
bool ret = SynthesizeBodyResult (compound_stmt,
OpenPOWER on IntegriCloud