diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-09-06 10:24:11 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-09-06 10:24:11 +0000 |
commit | ee65d5732164231e750d29a5ce63f04b1daa7eb4 (patch) | |
tree | 3bdb4f8c879efb27eb9f313d672cb0439be91706 /lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | |
parent | d25f1214a8c952aa72a37a1bd9f2e68da2a792a0 (diff) | |
download | bcm5719-llvm-ee65d5732164231e750d29a5ce63f04b1daa7eb4.tar.gz bcm5719-llvm-ee65d5732164231e750d29a5ce63f04b1daa7eb4.zip |
Reland [ClangUserExpression][NFC] Removed unused code
The GetLanguageForExpr has side effects, so we can't remove this
call without breaking the completion mechanism. However, we can
keep the change that gets rid of this unnecessary variable.
llvm-svn: 341535
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp index 048cef0b660..7018a58aea6 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp @@ -655,9 +655,7 @@ bool ClangUserExpression::Complete(ExecutionContext &exe_ctx, if (!PrepareForParsing(diagnostic_manager, exe_ctx)) return false; - lldb::LanguageType lang_type = lldb::LanguageType::eLanguageTypeUnknown; - if (auto new_lang = GetLanguageForExpr(diagnostic_manager, exe_ctx)) - lang_type = new_lang.getValue(); + GetLanguageForExpr(diagnostic_manager, exe_ctx); if (log) log->Printf("Parsing the following code:\n%s", m_transformed_text.c_str()); |