Fix issues with UBSAN test configuration.

On Apple the test feature 'sanitizer-new-delete' was incorrectly
getting added to the LIT feature set, which mistakenly caused tests
to be disabled when using UBSAN (the feature is only needed with ASAN/MSAN/TSAN).

llvm-svn: 307518
This commit is contained in:
Eric Fiselier 2017-07-10 04:32:21 +00:00
parent cc859306f4
commit 766233b153
2 changed files with 1 additions and 5 deletions

View File

@ -16,7 +16,7 @@
// UNSUPPORTED: c++98, c++03, c++11
// The sanitizers replace new/delete with versions that do not throw bad_alloc.
// UNSUPPORTED: sanitizer-new-delete, ubsan
// UNSUPPORTED: sanitizer-new-delete
#include <experimental/dynarray>

View File

@ -169,10 +169,6 @@ class DarwinLocalTI(DefaultTargetInfo):
# should be available in libc++ directly.
return False
def add_sanitizer_features(self, sanitizer_type, features):
if sanitizer_type == 'Undefined':
features.add('sanitizer-new-delete')
class FreeBSDLocalTI(DefaultTargetInfo):
def __init__(self, full_config):