Skip to content

Commit e204b91

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in GPUToLLVMConversion.cpp (NFC)
1 parent ad7937d commit e204b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ LogicalResult ConvertAllocOpToGpuRuntimeCallPattern::matchAndRewrite(
814814
if (isShared && allocOp.getAsyncToken())
815815
return rewriter.notifyMatchFailure(
816816
allocOp, "Host Shared allocation cannot be done async");
817-
else if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
817+
if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
818818
return failure();
819819

820820
// Get shape of the memref as values: static sizes are constant

0 commit comments

Comments
 (0)