Skip to content

Commit baf2f43

Browse files
al45tairetcwilde
andcommitted
[RemoteInspection] Use bool instead of !!.
Since this is adjacent to a `!=` operator, explicitly using `bool` seems clearer. Co-authored-by: Evan Wilde <[email protected]>
1 parent 2b70dcc commit baf2f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ class ReflectionContext
616616
std::string SecName(Start, StringSize);
617617
if (SecName != Name)
618618
continue;
619-
if (Retained != !!(Hdr->sh_flags & llvm::ELF::SHF_GNU_RETAIN))
619+
if (Retained != bool(Hdr->sh_flags & llvm::ELF::SHF_GNU_RETAIN))
620620
continue;
621621
RemoteAddress SecStart =
622622
RemoteAddress(ImageStart.getAddressData() + Hdr->sh_addr);

0 commit comments

Comments
 (0)