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 49f1751 commit 3119945Copy full SHA for 3119945
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -521,7 +521,7 @@ struct MainSwitch {
521
522
Instruction *SIUse = dyn_cast<Instruction>(SI->user_back());
523
// The use of the select inst should be either a phi or another select.
524
- if (!SIUse && !(isa<PHINode>(SIUse) || isa<SelectInst>(SIUse)))
+ if (!SIUse || !(isa<PHINode>(SIUse) || isa<SelectInst>(SIUse)))
525
return false;
526
527
BasicBlock *SIBB = SI->getParent();
0 commit comments