If the fixed expression doesn't parse, don't tell the user about it.
authorJim Ingham <jingham@apple.com>
Wed, 6 Apr 2016 00:25:04 +0000 (00:25 +0000)
committerJim Ingham <jingham@apple.com>
Wed, 6 Apr 2016 00:25:04 +0000 (00:25 +0000)
llvm-svn: 265495

lldb/source/Expression/UserExpression.cpp

index b58bf1f..2438708 100644 (file)
@@ -293,6 +293,11 @@ UserExpression::Evaluate (ExecutionContext &exe_ctx,
                 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)