Skip to content

Commit

Permalink
Fixing deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Mar 12, 2021
1 parent 5c5d2aa commit 6b63dac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iree/compiler/Conversion/LinalgToSPIRV/VectorizeMemref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ static bool getUsesIfAllTransferOp(Value v,
return true;
}


/// Returns the bitwidth of a scalar or vector type.
static Optional<unsigned> getBitWidth(Type type) {
if (type.isIntOrFloat()) {
Expand Down Expand Up @@ -370,7 +369,7 @@ class ProcessPlaceHolder final
auto vecMemRef = getVectorizedMemRefType(rewriter, placeholder.getResult());
if (!vecMemRef) return failure();
rewriter.replaceOpWithNewOp<IREE::PlaceholderOp>(
placeholder, *vecMemRef, ValueRange(), placeholder.getAttrs());
placeholder, *vecMemRef, ValueRange(), placeholder->getAttrs());
return success();
}
};
Expand Down

0 comments on commit 6b63dac

Please sign in to comment.