mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
TargetParserTest - testARMArch - stop bitwise operators on boolean warnings. NFCI.
Ensure the test still runs all target checks but stop the static analyzer warnings.
This commit is contained in:
parent
aeb4df5894
commit
d55a685d43
@ -322,10 +322,11 @@ TEST(TargetParserTest, testInvalidARMArch) {
|
||||
bool testARMArch(StringRef Arch, StringRef DefaultCPU, StringRef SubArch,
|
||||
unsigned ArchAttr) {
|
||||
ARM::ArchKind AK = ARM::parseArch(Arch);
|
||||
return (AK!= ARM::ArchKind::INVALID) &
|
||||
ARM::getDefaultCPU(Arch).equals(DefaultCPU) &
|
||||
ARM::getSubArch(AK).equals(SubArch) &
|
||||
(ARM::getArchAttr(AK) == ArchAttr);
|
||||
bool Result = (AK != ARM::ArchKind::INVALID);
|
||||
Result &= ARM::getDefaultCPU(Arch).equals(DefaultCPU);
|
||||
Result &= ARM::getSubArch(AK).equals(SubArch);
|
||||
Result &= (ARM::getArchAttr(AK) == ArchAttr);
|
||||
return Result;
|
||||
}
|
||||
|
||||
TEST(TargetParserTest, testARMArch) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user