[Lldb-commits] [lldb] r265495 - If the fixed expression doesn't parse, don't tell the user about it.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 5 17:25:05 PDT 2016
Author: jingham
Date: Tue Apr 5 19:25:04 2016
New Revision: 265495
URL: http://llvm.org/viewvc/llvm-project?rev=265495&view=rev
Log:
If the fixed expression doesn't parse, don't tell the user about it.
Modified:
lldb/trunk/source/Expression/UserExpression.cpp
Modified: lldb/trunk/source/Expression/UserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/UserExpression.cpp?rev=265495&r1=265494&r2=265495&view=diff
==============================================================================
--- lldb/trunk/source/Expression/UserExpression.cpp (original)
+++ lldb/trunk/source/Expression/UserExpression.cpp Tue Apr 5 19:25:04 2016
@@ -293,6 +293,11 @@ UserExpression::Evaluate (ExecutionConte
diagnostic_manager.Clear();
user_expression_sp = fixed_expression_sp;
}
+ else
+ {
+ // If the fixed expression failed to parse, don't tell the user about, that won't help.
+ fixed_expression->clear();
+ }
}
if (!parse_success)
More information about the lldb-commits
mailing list