mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
committed by
Alastair Houghton
parent
f9ec4793e9
commit
cb4fd88ece
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user