Skip to content

Commit 8a86169

Browse files
[SYCL][ESIMD] - Remove unnecessary isCastable assert
1 parent a7c0c81 commit 8a86169

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/SYCLLowerIR/LowerESIMD.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,6 @@ static Instruction *addCastInstIfNeeded(Instruction *OldI, Instruction *NewI) {
755755
Type *NITy = NewI->getType();
756756
Type *OITy = OldI->getType();
757757
if (OITy != NITy) {
758-
assert(
759-
CastInst::isCastable(OITy, NITy) &&
760-
"Cannot add cast instruction while translating ESIMD intrinsic call");
761758
auto CastOpcode = CastInst::getCastOpcode(NewI, false, OITy, false);
762759
NewI = CastInst::Create(CastOpcode, NewI, OITy,
763760
NewI->getName() + ".cast.ty", OldI);

0 commit comments

Comments
 (0)