[Mlir-commits] [mlir] b39958c - Apply clang-tidy fixes for llvm-else-after-return in BuiltinDialectBytecode.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Feb 15 10:19:43 PST 2024
Author: Mehdi Amini
Date: 2024-02-15T10:17:27-08:00
New Revision: b39958c2e8b9b4e357facabdc303cda4cbf2bc0d
URL: https://github.com/llvm/llvm-project/commit/b39958c2e8b9b4e357facabdc303cda4cbf2bc0d
DIFF: https://github.com/llvm/llvm-project/commit/b39958c2e8b9b4e357facabdc303cda4cbf2bc0d.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in BuiltinDialectBytecode.cpp (NFC)
Added:
Modified:
mlir/lib/IR/BuiltinDialectBytecode.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/BuiltinDialectBytecode.cpp b/mlir/lib/IR/BuiltinDialectBytecode.cpp
index 9487e6c50ded90..6131b7eae90c8b 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<IntegerType>(type)) {
return intType.getWidth();
- } else if (llvm::isa<IndexType>(type)) {
+ }
+ if (llvm::isa<IndexType>(type)) {
return IndexType::kInternalStorageBitWidth;
}
reader.emitError()
More information about the Mlir-commits
mailing list