This patch fixes:
llvm/lib/Object/XCOFFObjectFile.cpp:1001:20: warning: suggest
parentheses around ‘&&’ within ‘||’ [-Wparentheses]
template <typename ExceptEnt>
Expected<ArrayRef<ExceptEnt>> XCOFFObjectFile::getExceptionEntries() const {
- assert(is64Bit() && sizeof(ExceptEnt) == sizeof(ExceptionSectionEntry64) ||
- !is64Bit() && sizeof(ExceptEnt) == sizeof(ExceptionSectionEntry32));
+ assert((is64Bit() && sizeof(ExceptEnt) == sizeof(ExceptionSectionEntry64)) ||
+ (!is64Bit() && sizeof(ExceptEnt) == sizeof(ExceptionSectionEntry32)));
Expected<uintptr_t> ExceptionSectOrErr =
getSectionFileOffsetToRawData(XCOFF::STYP_EXCEPT);