Skip to content

Commit

Permalink
Apply clang-tidy fixes for performance-unnecessary-value-param in One…
Browse files Browse the repository at this point in the history
…ShotModuleBufferize.cpp (NFC)
  • Loading branch information
joker-eph committed May 30, 2022
1 parent 118d9eb commit 940e290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 940e290

Please sign in to comment.