Skip to content

Commit

Permalink
[clang][Interp][NFC] Loosen an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jun 19, 2024
1 parent 837ad17 commit ff57132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,9 @@ template <class Emitter>
bool ByteCodeExprGen<Emitter>::VisitExtVectorElementExpr(
const ExtVectorElementExpr *E) {
const Expr *Base = E->getBase();
assert(Base->getType()->isVectorType());
assert(
Base->getType()->isVectorType() ||
Base->getType()->getAs<PointerType>()->getPointeeType()->isVectorType());

SmallVector<uint32_t, 4> Indices;
E->getEncodedElementAccess(Indices);
Expand Down

0 comments on commit ff57132

Please sign in to comment.