Skip to content

Commit bd2bdad

Browse files
committed
void cast to suppress -Wunused-variable in non-asserts build
1 parent 7906c03 commit bd2bdad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3162,6 +3162,7 @@ Value *ScalarExprEmitter::EmitDiv(const BinOpInfo &Ops) {
31623162
// We need to check the types of the operands of the operator to get the
31633163
// correct matrix dimensions.
31643164
auto *BO = cast<BinaryOperator>(Ops.E);
3165+
(void)BO;
31653166
assert(
31663167
isa<ConstantMatrixType>(BO->getLHS()->getType().getCanonicalType()) &&
31673168
"first operand must be a matrix");

0 commit comments

Comments
 (0)