Issue |
91197
|
Summary |
bolt/include/bolt/Passes/IndirectCallPromotion.h:107: redundant condition ?
|
Labels |
BOLT
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
bolt/include/bolt/Passes/IndirectCallPromotion.h:107:39: style: Redundant condition: !Sym. 'Sym || (!Sym && Addr!=0)' is equivalent to 'Sym || Addr!=0' [redundantCondition]
Source code is
bool isValid() const { return Sym || (!Sym && Addr != 0); }
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs