Skip to content

Commit 165407a

Browse files
kazutakahirataJDevlieghere
authored andcommitted
[lldb] Fix a warning
This patch fixes: lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp:386:13: error: comparison between NULL and non-pointer ('lldb::addr_t' (aka 'unsigned long') and NULL) [-Werror,-Wnull-arithmetic] (cherry picked from commit ee4b462)
1 parent 8ed3a27 commit 165407a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ uint32_t PlatformWindows::DoLoadImage(Process *process,
398398
return LLDB_INVALID_IMAGE_TOKEN;
399399
}
400400

401-
if (token == NULL) {
401+
if (!token) {
402402
// XXX(compnerd) should we use the compiler to get the sizeof(unsigned)?
403403
uint64_t error_code =
404404
process->ReadUnsignedIntegerFromMemory(injected_result + 2 * word_size + sizeof(unsigned),

0 commit comments

Comments
 (0)