Skip to content

Commit eb0c8de

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in SerializeOps.cpp (NFC)
1 parent 332a504 commit eb0c8de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Target/SPIRV/Serialization/SerializeOps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ LogicalResult Serializer::processFuncOp(spirv::FuncOp op) {
247247
return op.emitError(
248248
"'spirv.module' cannot contain external functions "
249249
"without 'Import' linkage_attributes (LinkageAttributes)");
250-
} else if (op.isExternal() && hasImportLinkage) {
250+
}
251+
if (op.isExternal() && hasImportLinkage) {
251252
// Add an entry block to set up the block arguments
252253
// to match the signature of the function.
253254
// This is to generate OpFunctionParameter for functions with

0 commit comments

Comments
 (0)