diff --git a/iree/compiler/Conversion/LinalgToSPIRV/VectorizeMemref.cpp b/iree/compiler/Conversion/LinalgToSPIRV/VectorizeMemref.cpp index 671512a8b5fa..4e58fab88ad9 100644 --- a/iree/compiler/Conversion/LinalgToSPIRV/VectorizeMemref.cpp +++ b/iree/compiler/Conversion/LinalgToSPIRV/VectorizeMemref.cpp @@ -50,7 +50,6 @@ static bool getUsesIfAllTransferOp(Value v, return true; } - /// Returns the bitwidth of a scalar or vector type. static Optional getBitWidth(Type type) { if (type.isIntOrFloat()) { @@ -370,7 +369,7 @@ class ProcessPlaceHolder final auto vecMemRef = getVectorizedMemRefType(rewriter, placeholder.getResult()); if (!vecMemRef) return failure(); rewriter.replaceOpWithNewOp( - placeholder, *vecMemRef, ValueRange(), placeholder.getAttrs()); + placeholder, *vecMemRef, ValueRange(), placeholder->getAttrs()); return success(); } };