From: Slava Gurevich Date: Mon, 1 Aug 2022 20:46:37 +0000 (-0700) Subject: [LLDB][NFC][Correctness] Fix bad null check X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30b39111973798451397a1360dc7abc3e2490c84;p=platform%2Fupstream%2Fllvm.git [LLDB][NFC][Correctness] Fix bad null check Fix incorrect null-check logic, likely cause by copy-paste Differential Revision: https://reviews.llvm.org/D130937 --- diff --git a/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp b/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp index cbaa1fc..fe64da8 100644 --- a/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp +++ b/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp @@ -161,7 +161,7 @@ NativeProcessELF::GetLoadedSVR4Libraries() { GetAddressByteSize(), bytes_read); if (!status.Success()) return status.ToError(); - if (address == 0) + if (link_map == 0) return llvm::createStringError(llvm::inconvertibleErrorCode(), "Invalid link_map address");