Skip to content

Commit b71db67

Browse files
committed
address reviews
1 parent 77f5e70 commit b71db67

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mlir/include/mlir/Interfaces/DataLayoutInterfaces.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Attribute getDefaultGlobalMemorySpace(DataLayoutEntryInterface entry);
101101
/// DataLayoutInterface if specified, otherwise returns the default.
102102
uint64_t getDefaultStackAlignment(DataLayoutEntryInterface entry);
103103

104-
/// Default handler for the stack alignment request. Dispatches to the
105-
/// DataLayoutInterface if specified, otherwise returns the default.
104+
/// Default handler for the function pointer alignment request. Dispatches to
105+
/// the DataLayoutInterface if specified, otherwise returns the default.
106106
Attribute getDefaultFunctionPointerAlignment(DataLayoutEntryInterface entry);
107107

108108
/// Returns the value of the property from the specified DataLayoutEntry. If the

mlir/lib/Interfaces/DataLayoutInterfaces.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ mlir::detail::getDefaultStackAlignment(DataLayoutEntryInterface entry) {
316316
// the entry is empty the default alignment zero is returned.
317317
Attribute mlir::detail::getDefaultFunctionPointerAlignment(
318318
DataLayoutEntryInterface entry) {
319-
if (entry == DataLayoutEntryInterface()) {
319+
if (entry == DataLayoutEntryInterface())
320320
return Attribute();
321-
}
322321
return entry.getValue();
323322
}
324323

0 commit comments

Comments
 (0)