Simplify a boolean expression by using the De Morgan's law.
llvm-svn: 280766
This commit is contained in:
parent
5053b11edc
commit
adcdb664cb
|
@ -162,7 +162,7 @@ static bool checkConstraint(uint64_t Flags, ConstraintKind Kind) {
|
|||
bool RO = (Kind == ConstraintKind::ReadOnly);
|
||||
bool RW = (Kind == ConstraintKind::ReadWrite);
|
||||
bool Writable = Flags & SHF_WRITE;
|
||||
return !((RO && Writable) || (RW && !Writable));
|
||||
return !(RO && Writable) && !(RW && !Writable);
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
|
|
Loading…
Reference in New Issue