summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-11-11 04:28:40 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-11-11 04:28:40 +0000
commit41af43092ccc8030bb49cea324d85eecd5ae68a8 (patch)
treef30038673dd27f2d4785068fffd510abe4fb23d7 /lldb/source/Commands/CommandObjectExpression.cpp
parente8e98dcb74cd6d297c31c023bfacdf7f28cdaabc (diff)
downloadbcm5719-llvm-41af43092ccc8030bb49cea324d85eecd5ae68a8.tar.gz
bcm5719-llvm-41af43092ccc8030bb49cea324d85eecd5ae68a8.zip
Make the Error class constructor protected
This is forcing to use Error::success(), which is in a wide majority of cases a lot more readable. Differential Revision: https://reviews.llvm.org/D26481 llvm-svn: 286561
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index ba477cd5f4c..d98a3ee6fa6 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -303,7 +303,7 @@ CanBeUsedForElementCountPrinting(ValueObject &valobj) {
return Error("as it does not refer to a pointer");
if (pointee.IsVoidType())
return Error("as it refers to a pointer to void");
- return Error();
+ return Error::success();
}
bool CommandObjectExpression::EvaluateExpression(const char *expr,
OpenPOWER on IntegriCloud