Author: David Spickett Date: 2026-09-07T15:05:34+01:00 New Revision: 972cd3ddf3d58ecb79a4e6b62b35147513f3aeea
URL: https://github.com/llvm/llvm-project/commit/972cd3ddf3d58ecb79a4e6b62b35147513f3aeea DIFF: https://github.com/llvm/llvm-project/commit/972cd3ddf3d58ecb79a4e6b62b35147513f3aeea.diff LOG: [lldb][Windows] Silence unused variable warning on Windows on Arm (#221176) <...>/llvm-project/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp(507,8): warning: unused variable 'log' [-Wunused-variable] 507 | Log *log = GetLog(WindowsLog::Exception); | ^~~ Move that line into the `#ifndef __aarch64__` block to fix this. Added: Modified: lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp index fc00e3089e750..bb1feca5eb097 100644 --- a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp @@ -504,9 +504,9 @@ void NativeProcessWindows::OnDebuggerConnected(lldb::addr_t image_base) { ExceptionResult NativeProcessWindows::HandleSingleStepException(const ExceptionRecord &record) { - Log *log = GetLog(WindowsLog::Exception); uint32_t wp_id = LLDB_INVALID_INDEX32; #ifndef __aarch64__ + Log *log = GetLog(WindowsLog::Exception); if (NativeThreadWindows *thread = GetThreadByID(record.GetThreadID())) { NativeRegisterContextWindows ®_ctx = thread->GetRegisterContext(); Status error = _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
