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 /// function call analysis to determine which function arguments are
/// inplaceable. Then analyzes and bufferizes FuncOps one-by-one with One-Shot /// inplaceable. Then analyzes and bufferizes FuncOps one-by-one with One-Shot
/// Bufferize. /// Bufferize.
LogicalResult LogicalResult runOneShotModuleBufferize(
runOneShotModuleBufferize(ModuleOp moduleOp, ModuleOp moduleOp,
bufferization::OneShotBufferizationOptions options); const bufferization::OneShotBufferizationOptions &options);
} // namespace bufferization } // namespace bufferization
} // namespace mlir } // namespace mlir

View File

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