diff options
author | Pierre Gousseau <pierregousseau14@gmail.com> | 2019-02-26 13:50:29 +0000 |
---|---|---|
committer | Pierre Gousseau <pierregousseau14@gmail.com> | 2019-02-26 13:50:29 +0000 |
commit | 40ad3d2aa4b037587c3aba1aee87626830838564 (patch) | |
tree | 2deda53af9bd81f1a8cf64f82cee2aac765f1764 /clang/lib/Sema | |
parent | 89ae290b58e20fc5f56b7bfae4b34e7fef06e1b1 (diff) | |
download | bcm5719-llvm-40ad3d2aa4b037587c3aba1aee87626830838564.tar.gz bcm5719-llvm-40ad3d2aa4b037587c3aba1aee87626830838564.zip |
revert r354873 as this breaks lldb builds.
llvm-svn: 354875
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index d312936ebc8..bf11ae98bcc 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -6211,8 +6211,7 @@ static void handleNoSanitizeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { if (!S.checkStringLiteralArgumentAttr(AL, I, SanitizerName, &LiteralLoc)) return; - if (parseSanitizerValue(SanitizerName, /*AllowGroups=*/true) == - SanitizerMask()) + if (parseSanitizerValue(SanitizerName, /*AllowGroups=*/true) == 0) S.Diag(LiteralLoc, diag::warn_unknown_sanitizer_ignored) << SanitizerName; else if (isGlobalVar(D) && SanitizerName != "address") S.Diag(D->getLocation(), diag::err_attribute_wrong_decl_type) |