[Mlir-commits] [mlir] 85b35a9 - [MLIR] Fix build failure introduced by 3d04da5bc022

Uday Bondhugula llvmlistbot at llvm.org
Tue Apr 22 17:04:20 PDT 2025


Author: Uday Bondhugula
Date: 2025-04-23T05:24:05+05:30
New Revision: 85b35a90770b6053f91d79ca685cdfa4bf6499a4

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

LOG: [MLIR] Fix build failure introduced by 3d04da5bc022

Fix build failure in assert mode introduced by
8c74dc1adf83d370e740e44ffe073487fd3b38d2.

Added: 
    

Modified: 
    mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Affine/IR/AffineOps.cpp b/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
index 5d0055993e5fd..eb23403a68813 100644
--- a/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
+++ b/mlir/lib/Dialect/Affine/IR/AffineOps.cpp
@@ -1389,7 +1389,7 @@ static void legalizeDemotedDims(MapOrSet &mapOrSet,
 
   unsigned numOperands = operands.size();
 
-  assert(mapOrSet->getNumInputs() == numOperands &&
+  assert(mapOrSet.getNumInputs() == numOperands &&
          "map/set inputs must match number of operands");
 
   auto *context = mapOrSet.getContext();
@@ -1422,7 +1422,7 @@ static void legalizeDemotedDims(MapOrSet &mapOrSet,
   mapOrSet = mapOrSet.replaceDimsAndSymbols(
       /*dimReplacements=*/{}, symRemapping, oldNumDims + nextDim, nextSym);
 
-  assert(mapOrSet->getNumInputs() == operands.size() &&
+  assert(mapOrSet.getNumInputs() == operands.size() &&
          "map/set inputs must match number of operands");
 }
 


        


More information about the Mlir-commits mailing list