Skip to content

Commit

Permalink
[Object] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  llvm/lib/Object/XCOFFObjectFile.cpp:1001:20: warning: suggest
  parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  • Loading branch information
kazutakahirata committed Oct 15, 2022
1 parent 75076f8 commit f3a76f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Object/XCOFFObjectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,8 @@ Expected<ArrayRef<Reloc>> XCOFFObjectFile::relocations(const Shdr &Sec) const {

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);
Expand Down

0 comments on commit f3a76f0

Please sign in to comment.