summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ExpressionSourceCode.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-10-18 03:10:43 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-10-18 03:10:43 +0000
commita35912da9f44f7f3b885a4c1f567b1ac672978e1 (patch)
tree8523c084b37d46a02ceb5a44af56be3e5b3ccfc9 /lldb/source/Expression/ExpressionSourceCode.cpp
parent11bc3a18e2baff1a17ba467208052a4e97c92300 (diff)
downloadbcm5719-llvm-a35912da9f44f7f3b885a4c1f567b1ac672978e1.tar.gz
bcm5719-llvm-a35912da9f44f7f3b885a4c1f567b1ac672978e1.zip
Revert "Return a named error in the result object of an expression with no result"
This reverts commit r344647. This causes build failures with [-Werror, -Wswitch]. Some cases where the newly introduced enum value is not handled in particular are in: lldb/source/Expression/REPL.cpp:350 lldb/source/Interpreter/CommandInterpreter.cpp:1529 (maybe there could be more) As I don't understand lldb to make sure the likely trivial fixes are correct and also as they might need additional tests, leaving to the author to resolve. llvm-svn: 344722
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r--lldb/source/Expression/ExpressionSourceCode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp
index 2c8f77bb2df..abbb332fac4 100644
--- a/lldb/source/Expression/ExpressionSourceCode.cpp
+++ b/lldb/source/Expression/ExpressionSourceCode.cpp
@@ -256,7 +256,7 @@ bool ExpressionSourceCode::GetText(std::string &text,
}
ConstString object_name;
- if (1 /* Language::LanguageIsCPlusPlus(frame->GetLanguage())*/) {
+ if (Language::LanguageIsCPlusPlus(frame->GetLanguage())) {
if (target->GetInjectLocalVariables(&exe_ctx)) {
lldb::VariableListSP var_list_sp =
frame->GetInScopeVariableList(false, true);
OpenPOWER on IntegriCloud