summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-04-06 00:25:04 +0000
committerJim Ingham <jingham@apple.com>2016-04-06 00:25:04 +0000
commitb29c42f9ebedcc0ee6f977d4f399cdfe87d6d4c7 (patch)
tree65d650021d0aa1cb971ffcbc57a816d0757eb719 /lldb/source/Expression
parent2fcb27b08ca3a6cc6f4ecf2128cddaf584bb6e7c (diff)
downloadbcm5719-llvm-b29c42f9ebedcc0ee6f977d4f399cdfe87d6d4c7.tar.gz
bcm5719-llvm-b29c42f9ebedcc0ee6f977d4f399cdfe87d6d4c7.zip
If the fixed expression doesn't parse, don't tell the user about it.
llvm-svn: 265495
Diffstat (limited to 'lldb/source/Expression')
-rw-r--r--lldb/source/Expression/UserExpression.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp
index b58bf1f739c..2438708a79d 100644
--- a/lldb/source/Expression/UserExpression.cpp
+++ b/lldb/source/Expression/UserExpression.cpp
@@ -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)
OpenPOWER on IntegriCloud