[LLDB] Fix `Wunused-result` warning
GitOrigin-RevId: 5a63045fe78834937785ed5081052e083a98077f
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index 0b25abc..a7afa10 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -2832,7 +2832,9 @@
StartHandlingCommand();
OverrideExecutionContext(m_debugger.GetSelectedExecutionContext());
- llvm::make_scope_exit([this]() { RestoreExecutionContext(); });
+ auto finalize = llvm::make_scope_exit([this]() {
+ RestoreExecutionContext();
+ });
lldb_private::CommandReturnObject result(m_debugger.GetUseColor());
HandleCommand(line.c_str(), eLazyBoolCalculate, result);