Skip to content

Commit c9f2bef

Browse files
committed
Revert "Apply clang-tidy fixes for bugprone-macro-parentheses to MLIR (NFC)"
This reverts commit 393c6db. This broke the build.
1 parent bb50d47 commit c9f2bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ extern "C" {
914914
assert(tensor &&iref &&vref); \
915915
assert(iref->strides[0] == 1); \
916916
index_type *indx = iref->data + iref->offset; \
917-
(V) *value = vref->data + vref->offset; \
917+
V *value = vref->data + vref->offset; \
918918
const uint64_t isize = iref->sizes[0]; \
919919
auto iter = static_cast<SparseTensorCOO<V> *>(tensor); \
920920
const Element<V> *elem = iter->getNext(); \
@@ -950,7 +950,7 @@ extern "C" {
950950
assert(aref->strides[0] == 1); \
951951
assert(vref->sizes[0] == fref->sizes[0]); \
952952
index_type *cursor = cref->data + cref->offset; \
953-
(V) *values = vref->data + vref->offset; \
953+
V *values = vref->data + vref->offset; \
954954
bool *filled = fref->data + fref->offset; \
955955
index_type *added = aref->data + aref->offset; \
956956
static_cast<SparseTensorStorageBase *>(tensor)->expInsert( \

0 commit comments

Comments
 (0)