[compiler-rt] [llvm] [msan] Add 32-bit platforms support (PR #109284)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 00:46:08 PST 2024


================
@@ -6004,37 +6024,152 @@ struct VarArgSystemZHelper : public VarArgHelperBase {
   }
 };
 
-/// MIPS-specific implementation of VarArgHelper.
-/// NOTE: This is also used for LoongArch64.
+/// i386-specific implementation of VarArgHelper.
+struct VarArgI386Helper : public VarArgHelperBase {
+  AllocaInst *VAArgTLSCopy = nullptr;
+  Value *VAArgSize = nullptr;
+  const DataLayout &DL = F.getDataLayout();
----------------
vitalybuka wrote:

Please keep same approach 
to have those local

```
  const DataLayout &DL = F.getDataLayout();
  unsigned IntptrSize = DL.getTypeStoreSize(MS.IntptrTy);
```



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


More information about the llvm-commits mailing list