Revert "Apply clang-tidy fixes for bugprone-macro-parentheses to MLIR (NFC)"
authorMehdi Amini <joker.eph@gmail.com>
Mon, 7 Mar 2022 11:11:09 +0000 (11:11 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 7 Mar 2022 11:11:26 +0000 (11:11 +0000)
This reverts commit 393c6db7a173836b4ee350ad5598ed67b8fb14b9.
This broke the build.

mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

index ca1922a..3f9a809 100644 (file)
@@ -914,7 +914,7 @@ extern "C" {
     assert(tensor &&iref &&vref);                                              \
     assert(iref->strides[0] == 1);                                             \
     index_type *indx = iref->data + iref->offset;                              \
-    (V) *value = vref->data + vref->offset;                                    \
+    V *value = vref->data + vref->offset;                                      \
     const uint64_t isize = iref->sizes[0];                                     \
     auto iter = static_cast<SparseTensorCOO<V> *>(tensor);                     \
     const Element<V> *elem = iter->getNext();                                  \
@@ -950,7 +950,7 @@ extern "C" {
     assert(aref->strides[0] == 1);                                             \
     assert(vref->sizes[0] == fref->sizes[0]);                                  \
     index_type *cursor = cref->data + cref->offset;                            \
-    (V) *values = vref->data + vref->offset;                                   \
+    V *values = vref->data + vref->offset;                                     \
     bool *filled = fref->data + fref->offset;                                  \
     index_type *added = aref->data + aref->offset;                             \
     static_cast<SparseTensorStorageBase *>(tensor)->expInsert(                 \