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

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Apr 26 12:58:09 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();
----------------
nikic wrote:

The previous PR moved the method away from here -- should move them back again? I think it makes more sense to define them here than in Value.h.

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


More information about the llvm-branch-commits mailing list