diff options
| author | David Blaikie <dblaikie@gmail.com> | 2021-03-11 17:51:31 -0800 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2021-03-11 17:51:31 -0800 |
| commit | bd2bdad19e5a3bf910da7c2d1936a7e18b47c084 (patch) | |
| tree | c922784cbb53d16afcb9f81c25ab62f4a619a748 /clang/lib/CodeGen/CGExprScalar.cpp | |
| parent | 7906c0309beb709aa55c9dee8491881524b349ad (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.cpp | 1 |
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"); |
