Skip to content

Commit b39958c

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in BuiltinDialectBytecode.cpp (NFC)
1 parent de2f5bc commit b39958c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/IR/BuiltinDialectBytecode.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ namespace {
3333
static unsigned getIntegerBitWidth(DialectBytecodeReader &reader, Type type) {
3434
if (auto intType = dyn_cast<IntegerType>(type)) {
3535
return intType.getWidth();
36-
} else if (llvm::isa<IndexType>(type)) {
36+
}
37+
if (llvm::isa<IndexType>(type)) {
3738
return IndexType::kInternalStorageBitWidth;
3839
}
3940
reader.emitError()

0 commit comments

Comments
 (0)