]> granicus.if.org Git - clang/commit
Enable msan unconditionally on Linux.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 4 Apr 2018 23:48:06 +0000 (23:48 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 4 Apr 2018 23:48:06 +0000 (23:48 +0000)
commit34709b24899e9a1ca2f9c438628f6220fa56a7bb
treed4c4cca6f3a8b3f5b5878b6701bf625d5c12a7cc
parentdeddcb8899c7e7657cc79a0e96e3a532638769c7
Enable msan unconditionally on Linux.

Memory sanitizer compatibility are already done in
MemorySanitizer::doInitialization. It verifies whether the necessary offsets
exist and bails out if not. For this reason it is no good to duplicate two
checks in two projects. This patch removes clang check and postpones msan
compatibility validation till MemorySanitizer::doInitialization.

Another reason for this patch is to allow using msan with any CPU (given
compatible runtime) and custom mapping provided via the arguments added by
https://reviews.llvm.org/D44926.

Patch by vit9696.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Linux.cpp
test/Driver/fsanitize.c