[llvm][NFC] Silence unused variable warning by using isa over dyn_cast

This commit is contained in:
Nathan James 2020-07-27 13:37:21 +01:00
parent 432241955e
commit d127112724
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
1 changed files with 1 additions and 1 deletions

View File

@ -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))