Skip to content

Commit 1cb6e71

Browse files
committed
Replace fatal error with assert.
1 parent 80b7601 commit 1cb6e71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/VectorBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Value *VectorBuilder::createSimpleTargetReduction(RecurKind Kind, Type *ValTy,
101101
}
102102
};
103103
auto VPID = GetForRecurKind(Kind);
104-
if (VPID == Intrinsic::not_intrinsic)
105-
return returnWithError<Value *>("No VPIntrinsic for this reduction");
104+
assert(VPID != Intrinsic::not_intrinsic &&
105+
"No VPIntrinsic for this reduction");
106106
return createVectorInstructionImpl(VPID, ValTy, InstOpArray, Name);
107107
}
108108

0 commit comments

Comments
 (0)