diff --git a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h --- a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h +++ b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h @@ -173,9 +173,7 @@ void checkValid() const; /// Operation defining the scope of requests. - // TODO: this is mutable because the generated interface method are not const. - // Update the generator to support const methods and change this to const. - mutable Operation *scope; + Operation *scope; /// Caches for individual requests. mutable DenseMap sizes;