diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 39e0d8d5608d09..4774f92a2eed75 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -3162,6 +3162,7 @@ Value *ScalarExprEmitter::EmitDiv(const BinOpInfo &Ops) { // We need to check the types of the operands of the operator to get the // correct matrix dimensions. auto *BO = cast(Ops.E); + (void)BO; assert( isa(BO->getLHS()->getType().getCanonicalType()) && "first operand must be a matrix");