[RemoteInspection] Use bool instead of !!.

Since this is adjacent to a `!=` operator, explicitly using `bool` seems clearer.

Co-authored-by: Evan Wilde <etceterawilde@gmail.com>
This commit is contained in:
Alastair Houghton
2024-03-05 12:23:24 +00:00
committed by Alastair Houghton
parent f9ec4793e9
commit cb4fd88ece

View File

@@ -616,7 +616,7 @@ public:
std::string SecName(Start, StringSize);
if (SecName != Name)
continue;
if (Retained != !!(Hdr->sh_flags & llvm::ELF::SHF_GNU_RETAIN))
if (Retained != bool(Hdr->sh_flags & llvm::ELF::SHF_GNU_RETAIN))
continue;
RemoteAddress SecStart =
RemoteAddress(ImageStart.getAddressData() + Hdr->sh_addr);