Skip to content

Commit e19fa93

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-else-after-return in TypeParser.cpp (NFC)
1 parent f1ba44f commit e19fa93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Dialect/Quant/IR/TypeParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ static Type parseUniformType(DialectAsmParser &parser) {
410410
return parser.getChecked<UniformQuantizedPerAxisType>(
411411
typeFlags, storageType, expressedType, scales, zeroPoints,
412412
quantizedDimensions[0], storageTypeMin, storageTypeMax);
413-
} else if (isSubChannel) {
413+
}
414+
if (isSubChannel) {
414415
SmallVector<APFloat> apFloatScales =
415416
llvm::to_vector(llvm::map_range(scales, [&](double scale) -> APFloat {
416417
APFloat apFloatScale(scale);

0 commit comments

Comments
 (0)