Apply clang-tidy fixes for performance-unnecessary-value-param in OneShotModuleBufferize.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-05-30 13:18:19 +00:00
parent 118d9ebd52
commit 940e290860
2 changed files with 4 additions and 4 deletions

View File

@ -32,9 +32,9 @@ LogicalResult bufferizeModuleOp(ModuleOp moduleOp,
/// function call analysis to determine which function arguments are
/// inplaceable. Then analyzes and bufferizes FuncOps one-by-one with One-Shot
/// Bufferize.
LogicalResult
runOneShotModuleBufferize(ModuleOp moduleOp,
bufferization::OneShotBufferizationOptions options);
LogicalResult runOneShotModuleBufferize(
ModuleOp moduleOp,
const bufferization::OneShotBufferizationOptions &options);
} // namespace bufferization
} // namespace mlir

View File

@ -486,7 +486,7 @@ LogicalResult mlir::bufferization::bufferizeModuleOp(
}
LogicalResult mlir::bufferization::runOneShotModuleBufferize(
ModuleOp moduleOp, OneShotBufferizationOptions options) {
ModuleOp moduleOp, const OneShotBufferizationOptions &options) {
assert(options.bufferizeFunctionBoundaries &&
"expected that function boundary bufferization is activated");
OneShotAnalysisState analysisState(moduleOp, options);