Skip to content

Commit e0b66a4

Browse files
committed
[clang][Interp][NFC] Loosen an assertion
1 parent 498757e commit e0b66a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2838,7 +2838,9 @@ template <class Emitter>
28382838
bool ByteCodeExprGen<Emitter>::VisitExtVectorElementExpr(
28392839
const ExtVectorElementExpr *E) {
28402840
const Expr *Base = E->getBase();
2841-
assert(Base->getType()->isVectorType());
2841+
assert(
2842+
Base->getType()->isVectorType() ||
2843+
Base->getType()->getAs<PointerType>()->getPointeeType()->isVectorType());
28422844

28432845
SmallVector<uint32_t, 4> Indices;
28442846
E->getEncodedElementAccess(Indices);

0 commit comments

Comments
 (0)