[llvm] d127112 - [llvm][NFC] Silence unused variable warning by using isa over dyn_cast
Nathan James via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 27 05:37:34 PDT 2020
Author: Nathan James
Date: 2020-07-27T13:37:21+01:00
New Revision: d1271127240b0920e8758519d95a948d03a832ad
URL: https://github.com/llvm/llvm-project/commit/d1271127240b0920e8758519d95a948d03a832ad
DIFF: https://github.com/llvm/llvm-project/commit/d1271127240b0920e8758519d95a948d03a832ad.diff
LOG: [llvm][NFC] Silence unused variable warning by using isa over dyn_cast
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 711be57a0baf..965a72d3a650 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -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))
More information about the llvm-commits
mailing list