From b39958c2e8b9b4e357facabdc303cda4cbf2bc0d Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 20 Oct 2023 09:37:12 -0700 Subject: [PATCH] Apply clang-tidy fixes for llvm-else-after-return in BuiltinDialectBytecode.cpp (NFC) --- mlir/lib/IR/BuiltinDialectBytecode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlir/lib/IR/BuiltinDialectBytecode.cpp b/mlir/lib/IR/BuiltinDialectBytecode.cpp index 9487e6c50ded..6131b7eae90c 100644 --- a/mlir/lib/IR/BuiltinDialectBytecode.cpp +++ b/mlir/lib/IR/BuiltinDialectBytecode.cpp @@ -33,7 +33,8 @@ namespace { static unsigned getIntegerBitWidth(DialectBytecodeReader &reader, Type type) { if (auto intType = dyn_cast(type)) { return intType.getWidth(); - } else if (llvm::isa(type)) { + } + if (llvm::isa(type)) { return IndexType::kInternalStorageBitWidth; } reader.emitError()