summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2021-03-11 17:51:31 -0800
committerDavid Blaikie <dblaikie@gmail.com>2021-03-11 17:51:31 -0800
commitbd2bdad19e5a3bf910da7c2d1936a7e18b47c084 (patch)
treec922784cbb53d16afcb9f81c25ab62f4a619a748 /clang/lib/CodeGen/CGExprScalar.cpp
parent7906c0309beb709aa55c9dee8491881524b349ad (diff)
void cast to suppress -Wunused-variable in non-asserts build
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 39e0d8d5608d..4774f92a2eed 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<BinaryOperator>(Ops.E);
+ (void)BO;
assert(
isa<ConstantMatrixType>(BO->getLHS()->getType().getCanonicalType()) &&
"first operand must be a matrix");