[Lldb-commits] [lldb] r126251 - /lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
Sean Callanan
scallanan at apple.com
Tue Feb 22 13:52:56 PST 2011
Author: spyffe
Date: Tue Feb 22 15:52:56 2011
New Revision: 126251
URL: http://llvm.org/viewvc/llvm-project?rev=126251&view=rev
Log:
Fixed a hang in the expression parser's result synthesizer that occurs when the function generated for the expression is completely empty except for a NULL_STMT. This happens sometimes when the parser returns errors.
Modified:
lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
Modified: lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ASTResultSynthesizer.cpp?rev=126251&r1=126250&r2=126251&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ASTResultSynthesizer.cpp (original)
+++ lldb/trunk/source/Expression/ASTResultSynthesizer.cpp Tue Feb 22 15:52:56 2011
@@ -238,6 +238,10 @@
last_stmt_ptr--;
last_stmt = *last_stmt_ptr;
}
+ else
+ {
+ return false;
+ }
}
Expr *last_expr = dyn_cast<Expr>(last_stmt);
More information about the lldb-commits
mailing list