[Mlir-commits] [mlir] 3e6ae77 - [mlir] Non-void lambda does not return a value in all control paths in yieldReplacementForFusedProducer (NFC)

Jie Fu llvmlistbot at llvm.org
Mon Nov 20 17:12:37 PST 2023


Author: Jie Fu
Date: 2023-11-21T09:11:50+08:00
New Revision: 3e6ae77950e90d9795bd53bd57797d83f1c89aee

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

LOG: [mlir] Non-void lambda does not return a value in all control paths in yieldReplacementForFusedProducer (NFC)

/llvm-project/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp:703:5: error: non-void lambda does not return a value in all
 control paths [-Werror,-Wreturn-type]
    };
    ^
1 error generated.

Added: 
    

Modified: 
    mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index b91af4d246d9919..445cf367581c95c 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -700,6 +700,7 @@ void mlir::scf::yieldReplacementForFusedProducer(
             sliceOp.getMixedSizes(), sliceOp.getMixedStrides());
         return {replacement};
       }
+      return SmallVector<Value>();
     };
 
     addInitOperandsToLoopNest(rewriter, loops,


        


More information about the Mlir-commits mailing list