Skip to content

Commit acf2f24

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in LLVMDialect.cpp (NFC)
1 parent 2e09090 commit acf2f24

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,7 @@ ParseResult CallOp::parse(OpAsmParser &parser, OperationState &result) {
12481248
LLVMFunctionType CallOp::getCalleeFunctionType() {
12491249
if (getCalleeType())
12501250
return *getCalleeType();
1251-
else
1252-
return getLLVMFuncType(getContext(), getResultTypes(), getArgOperands());
1251+
return getLLVMFuncType(getContext(), getResultTypes(), getArgOperands());
12531252
}
12541253

12551254
///===---------------------------------------------------------------------===//
@@ -1444,8 +1443,7 @@ ParseResult InvokeOp::parse(OpAsmParser &parser, OperationState &result) {
14441443
LLVMFunctionType InvokeOp::getCalleeFunctionType() {
14451444
if (getCalleeType())
14461445
return *getCalleeType();
1447-
else
1448-
return getLLVMFuncType(getContext(), getResultTypes(), getArgOperands());
1446+
return getLLVMFuncType(getContext(), getResultTypes(), getArgOperands());
14491447
}
14501448

14511449
///===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)