[llvm-branch-commits] [llvm] IR: Remove reference counts from ConstantData (PR #137314)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 6 01:34:38 PDT 2025


================
@@ -85,10 +84,8 @@ class Use {
   Use **Prev = nullptr;
   User *Parent = nullptr;
 
-  inline void addToList(unsigned &Count);
-  inline void addToList(Use *&List);
-  inline void removeFromList(unsigned &Count);
-  inline void removeFromList(Use *&List);
+  inline void addToList(Use **List);
+  inline void removeFromList();
----------------
arsenm wrote:

That would require moving them out of line from the incomplete Value 

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


More information about the llvm-branch-commits mailing list