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)


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to