Fixed warning: enum constant in boolean context.

llvm-svn: 304663
This commit is contained in:
Galina Kistanova 2017-06-03 16:47:06 +00:00
parent 3347b3ab83
commit 8a338ea43a
1 changed files with 3 additions and 2 deletions

View File

@ -822,8 +822,9 @@ SanitizerMask Linux::getSupportedSanitizers() const {
const bool IsAArch64 = getTriple().getArch() == llvm::Triple::aarch64 ||
getTriple().getArch() == llvm::Triple::aarch64_be;
const bool IsArmArch = getTriple().getArch() == llvm::Triple::arm ||
llvm::Triple::thumb || llvm::Triple::armeb ||
llvm::Triple::thumbeb;
getTriple().getArch() == llvm::Triple::thumb ||
getTriple().getArch() == llvm::Triple::armeb ||
getTriple().getArch() == llvm::Triple::thumbeb;
SanitizerMask Res = ToolChain::getSupportedSanitizers();
Res |= SanitizerKind::Address;
Res |= SanitizerKind::Fuzzer;