[llvm-branch-commits] [mlir] 555a395 - [mlir] NFC - Fix unused variable in non-debug mode

Nicolas Vasilache via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 20 14:26:58 PST 2021


Author: Nicolas Vasilache
Date: 2021-01-20T22:20:38Z
New Revision: 555a395f2ccd531159538668fa36c7dc63ecff60

URL: https://github.com/llvm/llvm-project/commit/555a395f2ccd531159538668fa36c7dc63ecff60
DIFF: https://github.com/llvm/llvm-project/commit/555a395f2ccd531159538668fa36c7dc63ecff60.diff

LOG: [mlir] NFC - Fix unused variable in non-debug mode

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td
index b8009a818aa0..7f3839a02b2f 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<VectorType>())
                &&"expected scalar or vector type");
+      }
       return res;
     }
 


        


More information about the llvm-branch-commits mailing list