OSDN Git Service

MSan: handle callbr instructions
authorAlexander Potapenko <glider@google.com>
Wed, 3 Jul 2019 09:28:50 +0000 (09:28 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 3 Jul 2019 09:28:50 +0000 (09:28 +0000)
commit4150c1d4af446605bb8665b56650e7dc217c3c8d
treed168b21bee22248203f9673e35f14f0ec4f2de67
parent9e3b43daf75e7e32f74dc8da6b5e0f9886f78090
MSan: handle callbr instructions

Summary:
Handling callbr is very similar to handling an inline assembly call:
MSan must checks the instruction's inputs.
callbr doesn't (yet) have outputs, so there's nothing to unpoison,
and conservative assembly handling doesn't apply either.

Fixes PR42479.

Reviewers: eugenis

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64072

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/msan_asm_conservative.ll