Skip to content

Commit d98e3d4

Browse files
authored
[BOLT][NFC] Apply absorption rule to boolean expression (#91540)
Fixes #91197.
1 parent e2d17a0 commit d98e3d4

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)