[Mlir-commits] [mlir] e19fa93 - [MLIR] Apply clang-tidy fixes for llvm-else-after-return in TypeParser.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Sep 18 11:40:41 PDT 2025


Author: Mehdi Amini
Date: 2025-09-18T11:40:12-07:00
New Revision: e19fa930ca838715028c00c234874d1db4f93154

URL: https://github.com/llvm/llvm-project/commit/e19fa930ca838715028c00c234874d1db4f93154
DIFF: https://github.com/llvm/llvm-project/commit/e19fa930ca838715028c00c234874d1db4f93154.diff

LOG: [MLIR] Apply clang-tidy fixes for llvm-else-after-return in TypeParser.cpp (NFC)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
index 9a18cff24e62a..6e79daa0da996 100644
--- a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
+++ b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
@@ -410,7 +410,8 @@ static Type parseUniformType(DialectAsmParser &parser) {
     return parser.getChecked<UniformQuantizedPerAxisType>(
         typeFlags, storageType, expressedType, scales, zeroPoints,
         quantizedDimensions[0], storageTypeMin, storageTypeMax);
-  } else if (isSubChannel) {
+  }
+  if (isSubChannel) {
     SmallVector<APFloat> apFloatScales =
         llvm::to_vector(llvm::map_range(scales, [&](double scale) -> APFloat {
           APFloat apFloatScale(scale);


        


More information about the Mlir-commits mailing list