summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SanitizerSpecialCaseList.cpp
diff options
context:
space:
mode:
authorPierre Gousseau <pierregousseau14@gmail.com>2019-02-26 13:30:14 +0000
committerPierre Gousseau <pierregousseau14@gmail.com>2019-02-26 13:30:14 +0000
commit44fad947a5710c96da95423e92a6f27d5070cea4 (patch)
treecdebb1dc7aa5346abb34f6bf2fadbb298c7d5d21 /clang/lib/Basic/SanitizerSpecialCaseList.cpp
parentd4a406e4998d057391d98df80bff1213381470cd (diff)
downloadbcm5719-llvm-44fad947a5710c96da95423e92a6f27d5070cea4.tar.gz
bcm5719-llvm-44fad947a5710c96da95423e92a6f27d5070cea4.zip
[Driver] Allow enum SanitizerOrdinal to represent more than 64 different sanitizer checks, NFC.
enum SanitizerOrdinal has reached maximum capacity, this change extends the capacity to 128 sanitizer checks. This can eventually allow us to add gcc 8's options "-fsanitize=pointer-substract" and "-fsanitize=pointer-compare". Fixes: https://llvm.org/PR39425 Differential Revision: https://reviews.llvm.org/D57914 llvm-svn: 354873
Diffstat (limited to 'clang/lib/Basic/SanitizerSpecialCaseList.cpp')
-rw-r--r--clang/lib/Basic/SanitizerSpecialCaseList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SanitizerSpecialCaseList.cpp b/clang/lib/Basic/SanitizerSpecialCaseList.cpp
index e042db92b4c..5fb0f9660b1 100644
--- a/clang/lib/Basic/SanitizerSpecialCaseList.cpp
+++ b/clang/lib/Basic/SanitizerSpecialCaseList.cpp
@@ -36,7 +36,7 @@ SanitizerSpecialCaseList::createOrDie(const std::vector<std::string> &Paths) {
void SanitizerSpecialCaseList::createSanitizerSections() {
for (auto &S : Sections) {
- SanitizerMask Mask = 0;
+ SanitizerMask Mask;
#define SANITIZER(NAME, ID) \
if (S.SectionMatcher->match(NAME)) \
OpenPOWER on IntegriCloud