Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 928e1d7

Browse files
committed
[InstCombine] remove unneeded dyn_cast to prevent unused variable warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325597 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 162d2b4 commit 928e1d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,11 +1359,10 @@ Instruction *InstCombiner::visitFDiv(BinaryOperator &I) {
13591359
if (Instruction *R = FoldOpIntoSelect(I, SI))
13601360
return R;
13611361

1362-
if (Constant *Op1C = dyn_cast<Constant>(Op1)) {
1362+
if (isa<Constant>(Op1))
13631363
if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
13641364
if (Instruction *R = FoldOpIntoSelect(I, SI))
13651365
return R;
1366-
}
13671366

13681367
if (I.isFast()) {
13691368
Value *X, *Y;

0 commit comments

Comments
 (0)