[Mlir-commits] [mlir] Fix unused variable (PR #66644)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 18 06:35:11 PDT 2023


https://github.com/frgossen created https://github.com/llvm/llvm-project/pull/66644

None

>From 85143738e43bb21c43795ae7b17f901f66626ec3 Mon Sep 17 00:00:00 2001
From: Frederik Gossen <frgossen at google.com>
Date: Mon, 18 Sep 2023 09:33:32 -0400
Subject: [PATCH] Fix unused variable

---
 mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index 488dcff9ddb46e4..9d659bf694a2445 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -256,6 +256,7 @@ BitCastBitsEnumerator::BitCastBitsEnumerator(VectorType sourceVectorType,
   LDBG("targetVectorType: " << targetVectorType);
 
   int64_t bitwidth = targetBitWidth * mostMinorTargetDim;
+  (void) mostMinorSourceDim;
   assert(bitwidth == sourceBitWidth * mostMinorSourceDim &&
          "source and target bitwidths must match");
 



More information about the Mlir-commits mailing list