From 2494e8a6a27dc2540908bbb2e13cd844332c96e9 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 27 May 2016 15:49:32 +0000 Subject: [PATCH] [msan] add a sentence about inline assembly llvm-svn: 271005 --- clang/docs/MemorySanitizer.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/docs/MemorySanitizer.rst b/clang/docs/MemorySanitizer.rst index 62cacce215d0..4e58588b8018 100644 --- a/clang/docs/MemorySanitizer.rst +++ b/clang/docs/MemorySanitizer.rst @@ -171,6 +171,8 @@ Handling external code MemorySanitizer requires that all program code is instrumented. This also includes any libraries that the program depends on, even libc. Failing to achieve this may result in false reports. +For the same reason you may need to replace all inline assembly code that writes to memory +with a pure C/C++ code. Full MemorySanitizer instrumentation is very difficult to achieve. To make it easier, MemorySanitizer runtime library includes 70+