[Mlir-commits] [mlir] [mlir] Use SymbolOpInterface to implement operateOnSymbol in test-symbol-uses pass (PR #172675)

lonely eagle llvmlistbot at llvm.org
Wed Dec 17 18:09:30 PST 2025


================
@@ -59,7 +59,7 @@ struct SymbolUsesPass
               symbolUse.getUser()->getParentOp(), symbolUse.getSymbolRef())) {
         symbolUse.getUser()->emitRemark()
             << "found use of symbol : " << symbolUse.getSymbolRef() << " : "
-            << *symbol->getInherentAttr(SymbolTable::getSymbolAttrName());
+            << symbol->getAttr(SymbolTable::getSymbolAttrName());
----------------
linuxlonelyeagle wrote:

Thank you for making me truly understand your intention.

https://github.com/llvm/llvm-project/pull/172675


More information about the Mlir-commits mailing list