[Lldb-commits] [lldb] 58bedae - [LLDB] Remove unused variable 'lang_rt' in ClangExpressionParser.cpp (NFC)
Jie Fu via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 16 17:43:26 PST 2023
Author: Jie Fu
Date: 2023-02-17T09:43:09+08:00
New Revision: 58bedaed0fea43fbf14bdb5f1da500528ca6dc80
URL: https://github.com/llvm/llvm-project/commit/58bedaed0fea43fbf14bdb5f1da500528ca6dc80
DIFF: https://github.com/llvm/llvm-project/commit/58bedaed0fea43fbf14bdb5f1da500528ca6dc80.diff
LOG: [LLDB] Remove unused variable 'lang_rt' in ClangExpressionParser.cpp (NFC)
/data/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:398:34: error: variable 'lang_rt' set but not used [-Werror,-Wunused-but-set-variable]
lldb_private::LanguageRuntime *lang_rt = nullptr;
^
1 error generated.
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
index 18d89b91e8313..0b40df141f098 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
@@ -395,7 +395,6 @@ ClangExpressionParser::ClangExpressionParser(
lldb::LanguageType frame_lang =
expr.Language(); // defaults to lldb::eLanguageTypeUnknown
- lldb_private::LanguageRuntime *lang_rt = nullptr;
std::string abi;
ArchSpec target_arch;
@@ -415,7 +414,6 @@ ClangExpressionParser::ClangExpressionParser(
frame_lang = frame_sp->GetLanguage();
if (process_sp && frame_lang != lldb::eLanguageTypeUnknown) {
- lang_rt = process_sp->GetLanguageRuntime(frame_lang);
LLDB_LOGF(log, "Frame has language of type %s",
Language::GetNameForLanguageType(frame_lang));
}
More information about the lldb-commits
mailing list