File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments