Skip to content

Commit 8dd7cde

Browse files
committed
Assert RecurKind is None
1 parent 45ebdc0 commit 8dd7cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ unsigned RecurrenceDescriptor::getOpcode(RecurKind Kind) {
11711171
SmallVector<Instruction *, 4>
11721172
RecurrenceDescriptor::getReductionOpChain(PHINode *Phi, Loop *L) const {
11731173
SmallVector<Instruction *, 4> ReductionOperations;
1174+
assert(Kind != RecurKind::None && "Unexpected recurrence kind");
11741175
bool IsNonArithmetic = !isArithmeticRecurrenceKind(Kind);
11751176

11761177
// Search down from the Phi to the LoopExitInstr, looking for instructions

0 commit comments

Comments
 (0)