[Lldb-commits] [PATCH] D130937: [LLDB][NFC][Correctness] Fix bad null check
Slava Gurevich via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 1 14:45:49 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG30b391119737: [LLDB][NFC][Correctness] Fix bad null check (authored by fixathon).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130937/new/
https://reviews.llvm.org/D130937
Files:
lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
Index: lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
===================================================================
--- lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
+++ lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
@@ -161,7 +161,7 @@
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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130937.449133.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220801/12dac799/attachment.bin>
More information about the lldb-commits
mailing list