Skip to content

Commit d127112

Browse files
committed
[llvm][NFC] Silence unused variable warning by using isa over dyn_cast
1 parent 4322419 commit d127112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ Instruction *InstCombinerImpl::foldOpIntoPhi(Instruction &I, PHINode *PN) {
11431143
Builder);
11441144
NewPN->addIncoming(InV, PN->getIncomingBlock(i));
11451145
}
1146-
} else if (auto *FI = dyn_cast<FreezeInst>(&I)) {
1146+
} else if (isa<FreezeInst>(&I)) {
11471147
for (unsigned i = 0; i != NumPHIValues; ++i) {
11481148
Value *InV;
11491149
if (NonConstBB == PN->getIncomingBlock(i))

0 commit comments

Comments
 (0)