[compiler-rt] [llvm] [msan] Add experimental '-mllvm -msan-embed-faulting-instruction' and MSAN_OPTIONS=print_faulting_instruction (PR #136539)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 18:57:21 PDT 2025


================
@@ -1431,9 +1499,15 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
       ConvertedShadow = convertShadowToScalar(ConvertedShadow, IRB);
       Value *ConvertedShadow2 =
           IRB.CreateZExt(ConvertedShadow, IRB.getIntNTy(8 * (1 << SizeIndex)));
-      CallBase *CB = IRB.CreateCall(
-          Fn, {ConvertedShadow2,
-               MS.TrackOrigins && Origin ? Origin : (Value *)IRB.getInt32(0)});
+
+      SmallVector<Value *, 4> Args = {
----------------
thurstond wrote:

It's a vector of `Value *` (these are Args, not ArgsTy). I've shrunk it to 3.

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


More information about the llvm-commits mailing list