[lld] [lld-macho] Fix category merging category map non-determinism (PR #91159)

Kyungwoo Lee via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 09:17:00 PDT 2024


================
@@ -341,10 +341,13 @@ class ObjcCategoryMerger {
     ConcatInputSection *catListIsec;
     ConcatInputSection *catBodyIsec;
     uint32_t offCatListIsec = 0;
+    uint32_t inputIndex = 0;
 
     bool wasMerged = false;
   };
 
+  typedef std::vector<InfoInputCategory> CategoryGroup;
----------------
kyulee-com wrote:

```suggestion
using CategoryGroup = std::vector<InfoInputCategory>;
```

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


More information about the llvm-commits mailing list