diff options
author | Fangrui Song <maskray@google.com> | 2019-07-10 00:30:02 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-07-10 00:30:02 +0000 |
commit | 9c147bd40bc93376df274e8a5d51c69a55199044 (patch) | |
tree | b875763aebbb91b82a8b8148359327b6194310c3 /clang/test/Modules | |
parent | d0ba79fe7bfe32f8e0ddf42de002716d937431c4 (diff) | |
download | bcm5719-llvm-9c147bd40bc93376df274e8a5d51c69a55199044.tar.gz bcm5719-llvm-9c147bd40bc93376df274e8a5d51c69a55199044.zip |
[Driver] Add float-divide-by-zero back to supported sanitizers after D63793/rC365272
D63793 removed float-divide-by-zero from the "undefined" set but it
failed to add it to getSupportedSanitizers(), thus the sanitizer is
rejected by the driver:
clang-9: error: unsupported option '-fsanitize=float-divide-by-zero' for target 'x86_64-unknown-linux-gnu'
Also, add SanitizerMask::FloatDivideByZero to a few other masks to make -fsanitize-trap, -fsanitize-recover, -fsanitize-minimal-runtime and -fsanitize-coverage work.
Reviewed By: rsmith, vitalybuka
Differential Revision: https://reviews.llvm.org/D64317
llvm-svn: 365587
Diffstat (limited to 'clang/test/Modules')
-rw-r--r-- | clang/test/Modules/check-for-sanitizer-feature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Modules/check-for-sanitizer-feature.cpp b/clang/test/Modules/check-for-sanitizer-feature.cpp index c015669071b..2137b1bf36b 100644 --- a/clang/test/Modules/check-for-sanitizer-feature.cpp +++ b/clang/test/Modules/check-for-sanitizer-feature.cpp @@ -29,7 +29,7 @@ // RUN: ls %t.2 | count 2 // // Next, build with sanitization, and check that a new module isn't built. -// RUN: %clang_cc1 -fsanitize=cfi-vcall,unsigned-integer-overflow,nullability-arg,null -fmodules \ +// RUN: %clang_cc1 -fsanitize=cfi-vcall,float-divide-by-zero,unsigned-integer-overflow,nullability-arg,null -fmodules \ // RUN: -fmodules-cache-path=%t.2 \ // RUN: -fmodule-map-file=%S/Inputs/check-for-sanitizer-feature/map \ // RUN: -I %S/Inputs/check-for-sanitizer-feature -verify %s |