[MSan] Introduce ActualFnStart. NFC
authorAlexander Potapenko <glider@google.com>
Wed, 28 Mar 2018 11:35:09 +0000 (11:35 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 28 Mar 2018 11:35:09 +0000 (11:35 +0000)
commit4e7ad0805e5d9b947ec504a5c43c2e4092c8cfc9
tree3ab5153182fc15423fb70d478752399b403b55b5
parentfd11560f6e6ae03c3026f25956339c81c627408d
[MSan] Introduce ActualFnStart. NFC

This is a step towards the upcoming KMSAN implementation patch.
KMSAN is going to prepend a special basic block containing
tool-specific calls to each function. Because we still want to
instrument the original entry block, we'll need to store it in
ActualFnStart.

For MSan this will still be F.getEntryBlock(), whereas for KMSAN
it'll contain the second BB.

llvm-svn: 328697
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp