Apply clang-tidy fixes for llvm-else-after-return in GPUToLLVMConversion.cpp (NFC)

This commit is contained in:
Mehdi Amini
2023-10-20 02:29:50 -07:00
parent ad7937d338
commit e204b9198a

View File

@@ -814,7 +814,7 @@ LogicalResult ConvertAllocOpToGpuRuntimeCallPattern::matchAndRewrite(
if (isShared && allocOp.getAsyncToken())
return rewriter.notifyMatchFailure(
allocOp, "Host Shared allocation cannot be done async");
else if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
return failure();
// Get shape of the memref as values: static sizes are constant