diff options
author | Sean Callanan <scallanan@apple.com> | 2011-10-07 23:18:13 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-10-07 23:18:13 +0000 |
commit | 880e680fa3ac5cb7c9d4a42ad69c5590b4cab0ac (patch) | |
tree | 1598270efe28fb84f765cd07d5bcfccb155975b9 /lldb/source/Expression/ASTResultSynthesizer.cpp | |
parent | 883ec9711530053a0f38e2cd3ef2b72af6e2ebea (diff) | |
download | bcm5719-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.cpp | 4 |
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, |