Apply clang-tidy fixes for llvm-else-after-return in SparseTensorRewriting.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Mon, 29 Aug 2022 11:12:46 +0000 (11:12 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 7 Sep 2022 19:30:54 +0000 (19:30 +0000)
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp

index a8c0883..ca19cc4 100644 (file)
@@ -270,7 +270,8 @@ public:
     // All other cases are handled elsewhere.
     if (encDst && encSrc) {
       return failure();
-    } else if (encSrc) {
+    }
+    if (encSrc) {
       RankedTensorType rtp =
           op.getSrc().getType().template cast<RankedTensorType>();
       auto denseTp =