We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d17a0 commit d98e3d4Copy full SHA for d98e3d4
bolt/include/bolt/Passes/IndirectCallPromotion.h
@@ -104,7 +104,7 @@ class IndirectCallPromotion : public BinaryFunctionPass {
104
struct Location {
105
MCSymbol *Sym{nullptr};
106
uint64_t Addr{0};
107
- bool isValid() const { return Sym || (!Sym && Addr != 0); }
+ bool isValid() const { return Sym || Addr != 0; }
108
Location() {}
109
explicit Location(MCSymbol *Sym) : Sym(Sym) {}
110
explicit Location(uint64_t Addr) : Addr(Addr) {}
0 commit comments