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.
2 parents 7997a82 + 3119945 commit e8e81d4Copy full SHA for e8e81d4
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