[Mlir-commits] [mlir] cd9ca42 - Remove unnecessary return in InlinerPass.cpp (#123507)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Jan 19 21:21:12 PST 2025


Author: Hyunsung Lee
Date: 2025-01-20T08:21:09+03:00
New Revision: cd9ca423b7400000b4e0199450283439fcc1bbd9

URL: https://github.com/llvm/llvm-project/commit/cd9ca423b7400000b4e0199450283439fcc1bbd9
DIFF: https://github.com/llvm/llvm-project/commit/cd9ca423b7400000b4e0199450283439fcc1bbd9.diff

LOG: Remove unnecessary return in InlinerPass.cpp (#123507)

`void InlinerPass::runOnOperation()` doesn't need to have `return;` at
the end of the procedure.

Added: 
    

Modified: 
    mlir/lib/Transforms/InlinerPass.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/InlinerPass.cpp b/mlir/lib/Transforms/InlinerPass.cpp
index 04b2f9e4191877..703e517d453742 100644
--- a/mlir/lib/Transforms/InlinerPass.cpp
+++ b/mlir/lib/Transforms/InlinerPass.cpp
@@ -149,7 +149,6 @@ void InlinerPass::runOnOperation() {
   // Run the inlining.
   if (failed(inliner.doInlining()))
     signalPassFailure();
-  return;
 }
 
 LogicalResult InlinerPass::initializeOptions(


        


More information about the Mlir-commits mailing list