Skip to content

Commit dc337a5

Browse files
jpienaarjoker-eph
andcommitted
Apply suggestions from code review
Co-authored-by: Mehdi Amini <[email protected]>
1 parent 61304ee commit dc337a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/IR/SymbolInterfaces.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def SymbolUserAttrInterface : AttrInterface<"SymbolUserAttrInterface"> {
227227
This interface describes an attribute that may use a `Symbol`. This
228228
interface allows for users of symbols to hook into verification and other
229229
symbol related utilities that are either costly or otherwise disallowed
230-
within a traditional operation.
230+
within an operation.
231231
}];
232232
let cppNamespace = "::mlir";
233233

mlir/lib/IR/SymbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ LogicalResult detail::verifySymbolTable(Operation *op) {
513513
if (SymbolUserOpInterface user = dyn_cast<SymbolUserOpInterface>(op))
514514
if (failed(user.verifySymbolUses(symbolTable)))
515515
return WalkResult::interrupt();
516-
for (auto &attr : op->getAttrs()) {
516+
for (auto &attr : op->getDiscardableAttrs()) {
517517
if (auto user = dyn_cast<SymbolUserAttrInterface>(attr.getValue())) {
518518
if (failed(user.verifySymbolUses(op, symbolTable)))
519519
return WalkResult::interrupt();

0 commit comments

Comments
 (0)