Skip to content

Commit 745415d

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-else-after-return in IRAttributes.cpp (NFC)
1 parent 7e581d6 commit 745415d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mlir/lib/Bindings/Python/IRAttributes.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,11 +1092,10 @@ class PyDenseElementsAttribute
10921092
"when the type is not a shaped type.");
10931093
}
10941094
return *bulkLoadElementType;
1095-
} else {
1096-
MlirAttribute encodingAttr = mlirAttributeGetNull();
1097-
return mlirRankedTensorTypeGet(shape.size(), shape.data(),
1098-
*bulkLoadElementType, encodingAttr);
10991095
}
1096+
MlirAttribute encodingAttr = mlirAttributeGetNull();
1097+
return mlirRankedTensorTypeGet(shape.size(), shape.data(),
1098+
*bulkLoadElementType, encodingAttr);
11001099
}
11011100

11021101
static MlirAttribute getAttributeFromBuffer(

0 commit comments

Comments
 (0)