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)
commitf82672873a283c108c23d9b777badd41b3dfa272
treea1c47a07496925c1a3b456ecd3504b09ec8d6dec
parente6020f5c62ea5f99133fe003aedf542f7a4c07f6
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

llvm-svn: 365008
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/msan_asm_conservative.ll