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

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 21 09:53:58 PDT 2025


================
@@ -1455,21 +1513,51 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
     // correct origin.
     bool Combine = !MS.TrackOrigins;
     Instruction *Instruction = InstructionChecks.front().OrigIns;
+
+    Value *InstName = nullptr;
----------------
fmayer wrote:

I would pull this into a helper

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


More information about the llvm-commits mailing list