We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48375ac commit 7ffa3bcCopy full SHA for 7ffa3bc
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
@@ -250,9 +250,8 @@ Attribute mlir::detail::getDefaultEndianness(DataLayoutEntryInterface entry) {
250
// entry is empty the default memory space represented by an empty attribute is
251
// returned.
252
Attribute mlir::detail::getDefaultMemorySpace(DataLayoutEntryInterface entry) {
253
- if (entry == DataLayoutEntryInterface()) {
+ if (!entry)
254
return Attribute();
255
- }
256
257
return entry.getValue();
258
}
0 commit comments