[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:56:38 PDT 2025


================
@@ -873,16 +926,22 @@ void MemorySanitizer::createUserspaceApi(Module &M,
   // Create the callback.
   // FIXME: this function should have "Cold" calling conv,
   // which is not yet implemented.
+  StringRef WarningFnName = getWarningFnName(
+      TrackOrigins, Recover,
+      ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None);
+  SmallVector<Type *, 4> ArgsTy = {};
----------------
thurstond wrote:

I've shrunk it

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


More information about the llvm-commits mailing list