Skip to content

Commit 9d70975

Browse files
committed
[clang][Interp][NFC] Remove an assertion that's too strong
Both types need to boil down to a vector type with the same length and their element types need to match, but we still can't compare them with == since they might be sugared, etc.
1 parent a098bea commit 9d70975

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,8 +2538,6 @@ bool ByteCodeExprGen<Emitter>::VisitShuffleVectorExpr(
25382538
assert(E->getNumSubExprs() > 2);
25392539

25402540
const Expr *Vecs[] = {E->getExpr(0), E->getExpr(1)};
2541-
assert(Vecs[0]->getType() == Vecs[1]->getType());
2542-
25432541
const VectorType *VT = Vecs[0]->getType()->castAs<VectorType>();
25442542
PrimType ElemT = classifyPrim(VT->getElementType());
25452543
unsigned NumInputElems = VT->getNumElements();

0 commit comments

Comments
 (0)