OSDN Git Service

[MSan] store origins for variadic function parameters in __msan_va_arg_origin_tls
authorAlexander Potapenko <glider@google.com>
Thu, 6 Sep 2018 08:50:11 +0000 (08:50 +0000)
committerAlexander Potapenko <glider@google.com>
Thu, 6 Sep 2018 08:50:11 +0000 (08:50 +0000)
commita044b58ab1480e6c5ee3c13dac6a8fb2462b2909
treefbc6f2c082b9c3f819c3b20fc2a0611d36001e3c
parent139b3ea82f1fbeb6370eb11f0592bda03d976f46
[MSan] store origins for variadic function parameters in __msan_va_arg_origin_tls

Add the __msan_va_arg_origin_tls TLS array to keep the origins for
variadic function parameters.
Change the instrumentation pass to store parameter origins in this array.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/X86/vararg_call.ll [new file with mode: 0644]