[Mlir-commits] [mlir] bcd3445 - [mlir][arith] Fix unused variable warning. NFC.

Jakub Kuderski llvmlistbot at llvm.org
Fri Sep 9 14:18:43 PDT 2022


Author: Jakub Kuderski
Date: 2022-09-09T17:18:15-04:00
New Revision: bcd344564114ae4bfb72ba4c85a92c0f6fc440ba

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

LOG: [mlir][arith] Fix unused variable warning. NFC.

Added: 
    

Modified: 
    mlir/lib/Dialect/Arithmetic/Transforms/EmulateWideInt.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Arithmetic/Transforms/EmulateWideInt.cpp b/mlir/lib/Dialect/Arithmetic/Transforms/EmulateWideInt.cpp
index 2bb0de30d7a83..cdecf5485e95f 100644
--- a/mlir/lib/Dialect/Arithmetic/Transforms/EmulateWideInt.cpp
+++ b/mlir/lib/Dialect/Arithmetic/Transforms/EmulateWideInt.cpp
@@ -117,6 +117,7 @@ static Value constructResultVector(ConversionPatternRewriter &rewriter,
                                    Location loc, VectorType resultType,
                                    ValueRange resultComponents) {
   llvm::ArrayRef<int64_t> resultShape = resultType.getShape();
+  (void)resultShape;
   assert(!resultShape.empty() && "Result expected to have dimentions");
   assert(resultShape.back() == static_cast<int64_t>(resultComponents.size()) &&
          "Wrong number of result components");


        


More information about the Mlir-commits mailing list