From: Mehdi Amini Date: Tue, 3 Jan 2023 11:12:42 +0000 (+0000) Subject: Apply clang-tidy fixes for llvm-else-after-return in GPUToSPIRV.cpp (NFC) X-Git-Tag: upstream/17.0.6~22122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f91b72dcc2968ba4d027e1217e4236f3a95f348;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for llvm-else-after-return in GPUToSPIRV.cpp (NFC) --- diff --git a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp index 86a71ac..5ecf510 100644 --- a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp +++ b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp @@ -442,10 +442,9 @@ static Value createGroupReduceOpImpl(OpBuilder &builder, Location loc, if (isUniform) { return builder.create(loc, type, scope, groupOp, arg) .getResult(); - } else { - return builder.create(loc, type, scope, groupOp, arg, Value{}) - .getResult(); } + return builder.create(loc, type, scope, groupOp, arg, Value{}) + .getResult(); } static llvm::Optional createGroupReduceOp(OpBuilder &builder,