Simplify a boolean expression by using the De Morgan's law.
llvm-svn: 280766
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 8634229..5f04382 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -162,7 +162,7 @@
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>