From 555a395f2ccd531159538668fa36c7dc63ecff60 Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Wed, 20 Jan 2021 22:19:59 +0000 Subject: [PATCH] [mlir] NFC - Fix unused variable in non-debug mode --- mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td index b8009a8..7f3839a 100644 --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td @@ -1083,9 +1083,11 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> { Operation::operand_range res{ getOperation()->getOperands().begin() + getNumShapedOperands(), getOperation()->getOperands().end()}; - for (Type t : TypeRange{res}) + for (Type t : TypeRange{res}) { + (void)t; assert((t.isSignlessIntOrIndexOrFloat() || t.template isa()) &&"expected scalar or vector type"); + } return res; } -- 2.7.4