[Lldb-commits] [lldb] 30b3911 - [LLDB][NFC][Correctness] Fix bad null check
Slava Gurevich via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 1 14:45:37 PDT 2022
Author: Slava Gurevich
Date: 2022-08-01T14:45:26-07:00
New Revision: 30b39111973798451397a1360dc7abc3e2490c84
URL: https://github.com/llvm/llvm-project/commit/30b39111973798451397a1360dc7abc3e2490c84
DIFF: https://github.com/llvm/llvm-project/commit/30b39111973798451397a1360dc7abc3e2490c84.diff
LOG: [LLDB][NFC][Correctness] Fix bad null check
Fix incorrect null-check logic, likely cause by copy-paste
Differential Revision: https://reviews.llvm.org/D130937
Added:
Modified:
lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp b/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
index cbaa1fc7a2b12..fe64da873d22a 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");
More information about the lldb-commits
mailing list