Skip to content

Commit 7ffa3bc

Browse files
committed
address reviewer comments.
1 parent 48375ac commit 7ffa3bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Interfaces/DataLayoutInterfaces.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,8 @@ Attribute mlir::detail::getDefaultEndianness(DataLayoutEntryInterface entry) {
250250
// entry is empty the default memory space represented by an empty attribute is
251251
// returned.
252252
Attribute mlir::detail::getDefaultMemorySpace(DataLayoutEntryInterface entry) {
253-
if (entry == DataLayoutEntryInterface()) {
253+
if (!entry)
254254
return Attribute();
255-
}
256255

257256
return entry.getValue();
258257
}

0 commit comments

Comments
 (0)