summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-03-18 16:04:46 +0000
committerPavel Labath <pavel@labath.sk>2019-03-18 16:04:46 +0000
commit370e5dbacdc7f01d347094c261dd4af1619eb51b (patch)
tree51b8fbe950047510b3f2cb72013d52a498627fc9 /lldb/source/API/SBTarget.cpp
parent22457e66c51f1314586b22469f365201a83b1f53 (diff)
downloadbcm5719-llvm-370e5dbacdc7f01d347094c261dd4af1619eb51b.tar.gz
bcm5719-llvm-370e5dbacdc7f01d347094c261dd4af1619eb51b.zip
Fix some "variable 'foo' set but not used" warnings
gcc-8 diagnoses these. llvm-svn: 356378
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r--lldb/source/API/SBTarget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 96bb80799f1..c168ae0d2cc 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -2356,7 +2356,6 @@ lldb::SBValue SBTarget::EvaluateExpression(const char *expr,
Log *expr_log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS));
#endif
SBValue expr_result;
- ExpressionResults exe_results = eExpressionSetupError;
ValueObjectSP expr_value_sp;
TargetSP target_sp(GetSP());
StackFrame *frame = NULL;
@@ -2383,8 +2382,7 @@ lldb::SBValue SBTarget::EvaluateExpression(const char *expr,
expr, options.GetFetchDynamicValue(),
frame_description.GetString().str().c_str());
#endif
- exe_results =
- target->EvaluateExpression(expr, frame, expr_value_sp, options.ref());
+ target->EvaluateExpression(expr, frame, expr_value_sp, options.ref());
expr_result.SetSP(expr_value_sp, options.GetFetchDynamicValue());
}
OpenPOWER on IntegriCloud