Skip to content

Commit 439aa6a

Browse files
committed
Fix unused variable warning on non-assert builds
1 parent 003e38d commit 439aa6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,8 +3544,8 @@ static bool interp__builtin_ia32_multishiftqb(InterpState &S, CodePtr OpPC,
35443544
const Pointer &BPtr = S.Stk.pop<Pointer>();
35453545
const Pointer &APtr = S.Stk.pop<Pointer>();
35463546
const auto *AVecT = ATy->castAs<VectorType>();
3547-
const auto *BVecT = BTy->castAs<VectorType>();
3548-
assert(AVecT->getNumElements() == BVecT->getNumElements());
3547+
assert(AVecT->getNumElements() ==
3548+
BTy->castAs<VectorType>()->getNumElements());
35493549

35503550
PrimType ElemT = *S.getContext().classify(AVecT->getElementType());
35513551

0 commit comments

Comments
 (0)