File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
llvm/include/llvm/Analysis Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -266,12 +266,10 @@ class RecurrenceDescriptor {
266266 // / Returns the sentinel value for FindLastIV recurrences to replace the start
267267 // / value.
268268 Value *getSentinelValue () const {
269- if (isFindLastIVRecurrenceKind (Kind)) {
270- Type *Ty = StartValue->getType ();
271- return ConstantInt::get (
272- Ty, APInt::getSignedMinValue (Ty->getIntegerBitWidth ()));
273- }
274- return nullptr ;
269+ assert (isFindLastIVRecurrenceKind (Kind) && " Unexpected recurrence kind" );
270+ Type *Ty = StartValue->getType ();
271+ return ConstantInt::get (Ty,
272+ APInt::getSignedMinValue (Ty->getIntegerBitWidth ()));
275273 }
276274
277275 // / Returns a reference to the instructions used for type-promoting the
You can’t perform that action at this time.
0 commit comments