Skip to content

Commit 08497a7

Browse files
committed
[VP] Fix unused variable in release configurations
1 parent c21e571 commit 08497a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/ExpandVectorPredication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ Value *CachingVPExpander::expandPredicationInComparison(IRBuilder<> &Builder,
469469
assert((maySpeculateLanes(VPI) || VPI.canIgnoreVectorLengthParam()) &&
470470
"Implicitly dropping %evl in non-speculatable operator!");
471471

472-
auto OC = *VPI.getFunctionalOpcode();
473-
assert(OC == Instruction::ICmp || OC == Instruction::FCmp);
472+
assert(*VPI.getFunctionalOpcode() == Instruction::ICmp ||
473+
*VPI.getFunctionalOpcode() == Instruction::FCmp);
474474

475475
Value *Op0 = VPI.getOperand(0);
476476
Value *Op1 = VPI.getOperand(1);

0 commit comments

Comments
 (0)