projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fcb27b
)
If the fixed expression doesn't parse, don't tell the user about it.
author
Jim Ingham
<jingham@apple.com>
Wed, 6 Apr 2016 00:25:04 +0000
(
00:25
+0000)
committer
Jim Ingham
<jingham@apple.com>
Wed, 6 Apr 2016 00:25:04 +0000
(
00:25
+0000)
llvm-svn: 265495
lldb/source/Expression/UserExpression.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Expression/UserExpression.cpp
b/lldb/source/Expression/UserExpression.cpp
index
b58bf1f
..
2438708
100644
(file)
--- 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)