[Mlir-commits] [mlir] ce0946d - [mlir][vector] Attempt to please gcc 9. NFC.

Jakub Kuderski llvmlistbot at llvm.org
Wed Nov 30 14:40:26 PST 2022


Author: Jakub Kuderski
Date: 2022-11-30T17:39:28-05:00
New Revision: ce0946d0b09cd9475af20ace182f744c969e0491

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

LOG: [mlir][vector] Attempt to please gcc 9. NFC.

This is a post-commit fix to D139022.

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 82216a85ccab..7bbb120f78f1 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -2386,7 +2386,7 @@ isIntegerArrayAttrConfinedToShape(OpType op, ArrayAttr arrayAttr,
                                   bool halfOpen = true, int64_t min = 0) {
   unsigned index = 0;
   for (auto [attr, maxDim] : llvm::zip_first(arrayAttr, shape)) {
-    int64_t val = attr.cast<IntegerAttr>().getInt();
+    int64_t val = attr.template cast<IntegerAttr>().getInt();
     int64_t max = maxDim;
     if (!halfOpen)
       max += 1;
@@ -2410,7 +2410,8 @@ static LogicalResult isSumOfIntegerArrayAttrConfinedToShape(
   assert(arrayAttr1.size() <= shape.size());
   assert(arrayAttr2.size() <= shape.size());
   unsigned index = 0;
-  for (auto it : llvm::zip(arrayAttr1, arrayAttr2, shape)) {
+  for (auto it :
+       llvm::zip(arrayAttr1, arrayAttr2, shape)) {
     auto val1 = std::get<0>(it).cast<IntegerAttr>().getInt();
     auto val2 = std::get<1>(it).cast<IntegerAttr>().getInt();
     int64_t max = std::get<2>(it);


        


More information about the Mlir-commits mailing list