Skip to content

Commit 24f836a

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-else-after-return in TosaProfileCompliance.cpp (NFC)
1 parent 48babe1 commit 24f836a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ llvm::SmallString<7>
592592
TosaProfileCompliance::stringifyTypeInfo(const TypeInfo &typeInfo) {
593593
if (typeInfo.typeID == mlir::IntegerType::getTypeID()) {
594594
return {"i" + llvm::utostr(typeInfo.bitWidth)};
595-
} else if (typeInfo.typeID == mlir::Float16Type::getTypeID()) {
595+
}
596+
if (typeInfo.typeID == mlir::Float16Type::getTypeID()) {
596597
return {"f16"};
597598
} else if (typeInfo.typeID == mlir::Float32Type::getTypeID()) {
598599
return {"f32"};

0 commit comments

Comments
 (0)