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

Mehdi Amini llvmlistbot at llvm.org
Mon Mar 30 04:48:11 PDT 2026


Author: Mehdi Amini
Date: 2026-03-30T04:44:52-07:00
New Revision: b50d5ad5074c6149ea3e45fa5cde862f8e84557e

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

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

Added: 
    

Modified: 
    mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
index 68b8d395c547b..a60ecc97aaee0 100644
--- a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
+++ b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
@@ -770,7 +770,8 @@ SmallVector<Value, 4> LLVMTypeConverter::promoteOperands(
         MemRefDescriptor desc(llvmOperand.front());
         promotedOperands.push_back(desc.alignedPtr(builder, loc));
         continue;
-      } else if (isa<UnrankedMemRefType>(operand.getType())) {
+      }
+      if (isa<UnrankedMemRefType>(operand.getType())) {
         llvm_unreachable("Unranked memrefs are not supported");
       }
     } else {


        


More information about the Mlir-commits mailing list