forked from OSchip/llvm-project
[llvm][NFC] Silence unused variable warning by using isa over dyn_cast
This commit is contained in:
parent
432241955e
commit
d127112724
|
@ -1143,7 +1143,7 @@ Instruction *InstCombinerImpl::foldOpIntoPhi(Instruction &I, PHINode *PN) {
|
|||
Builder);
|
||||
NewPN->addIncoming(InV, PN->getIncomingBlock(i));
|
||||
}
|
||||
} else if (auto *FI = dyn_cast<FreezeInst>(&I)) {
|
||||
} else if (isa<FreezeInst>(&I)) {
|
||||
for (unsigned i = 0; i != NumPHIValues; ++i) {
|
||||
Value *InV;
|
||||
if (NonConstBB == PN->getIncomingBlock(i))
|
||||
|
|
Loading…
Reference in New Issue