Skip to content

Commit 2fec0b1

Browse files
jpienaarjoker-eph
andauthored
Apply suggestions from code review
Co-authored-by: Mehdi Amini <[email protected]>
1 parent 3855fd5 commit 2fec0b1

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
@@ -225,7 +225,7 @@ def SymbolUserAttrInterface : AttrInterface<"SymbolUserAttrInterface"> {
225225
This interface describes an attribute that may use a `Symbol`. This
226226
interface allows for users of symbols to hook into verification and other
227227
symbol related utilities that are either costly or otherwise disallowed
228-
within a traditional operation.
228+
within an operation.
229229
}];
230230
let cppNamespace = "::mlir";
231231

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)