[lld] [LLD][MachO] Option to emit separate cstring sections (PR #158720)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 11:58:07 PDT 2025


================
@@ -1709,7 +1709,7 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
 
     firstTLVDataSection = nullptr;
     tar = nullptr;
-    memset(&in, 0, sizeof(in));
+    in = InStruct();
----------------
ellishg wrote:

I think adding a vector and map to this struct made it no longer trivially copyable. This seems like a better way to clear it anyway.

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


More information about the llvm-commits mailing list