Skip to content

Commit a8e6a05

Browse files
committed
[BOLT][NFC] Apply absorption rule to boolean expression
1 parent 443377a commit a8e6a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/include/bolt/Passes/IndirectCallPromotion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class IndirectCallPromotion : public BinaryFunctionPass {
104104
struct Location {
105105
MCSymbol *Sym{nullptr};
106106
uint64_t Addr{0};
107-
bool isValid() const { return Sym || (!Sym && Addr != 0); }
107+
bool isValid() const { return Sym || Addr != 0; }
108108
Location() {}
109109
explicit Location(MCSymbol *Sym) : Sym(Sym) {}
110110
explicit Location(uint64_t Addr) : Addr(Addr) {}

0 commit comments

Comments
 (0)