summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-10 19:37:10 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-10 19:37:10 +0000
commit0c19861051bc4ca4b2f9ab62aa1b62a0abf8c16a (patch)
tree54d83ff0efb9554ebb1160efd49197ece4359f6a
parent0c990bbe09ff6c76be00be25bc6f08f302c97c12 (diff)
downloadbcm5719-llvm-0c19861051bc4ca4b2f9ab62aa1b62a0abf8c16a.tar.gz
bcm5719-llvm-0c19861051bc4ca4b2f9ab62aa1b62a0abf8c16a.zip
[InstSimplify] Use cast instead of dyn_cast after isa<> check. NFCI
llvm-svn: 299870
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 76ffcf02ebe..807bbd20ac0 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -3107,8 +3107,8 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
// If both operands have range metadata, use the metadata
// to simplify the comparison.
if (isa<Instruction>(RHS) && isa<Instruction>(LHS)) {
- auto RHS_Instr = dyn_cast<Instruction>(RHS);
- auto LHS_Instr = dyn_cast<Instruction>(LHS);
+ auto RHS_Instr = cast<Instruction>(RHS);
+ auto LHS_Instr = cast<Instruction>(LHS);
if (RHS_Instr->getMetadata(LLVMContext::MD_range) &&
LHS_Instr->getMetadata(LLVMContext::MD_range)) {
OpenPOWER on IntegriCloud