Skip to content

Commit

Permalink
Addition to Fddf5bfd6e6e2fc5b94718a29e718b4f821a3b853
Browse files Browse the repository at this point in the history
Fix test bot breakage from bd0dd27

This addresses the issue found by: https://lab.llvm.org/buildbot/#/builders/93/builds/14929
  • Loading branch information
avl-llvm committed May 17, 2023
1 parent 3d53587 commit a0a3096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/DWARFLinker/DWARFLinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ void DWARFLinker::DIECloner::cloneExpression(
// processed by applyValidRelocs.
OutputBuffer.push_back(dwarf::DW_OP_addr);
uint64_t LinkedAddress = SA->Address + AddrRelocAdjustment;
if (!IsLittleEndian)
if (IsLittleEndian != sys::IsLittleEndianHost)
sys::swapByteOrder(LinkedAddress);
ArrayRef<uint8_t> AddressBytes(
reinterpret_cast<const uint8_t *>(&LinkedAddress),
Expand Down Expand Up @@ -1242,7 +1242,7 @@ void DWARFLinker::DIECloner::cloneExpression(
if (OutOperandKind) {
OutputBuffer.push_back(*OutOperandKind);
uint64_t LinkedAddress = SA->Address + AddrRelocAdjustment;
if (!IsLittleEndian)
if (IsLittleEndian != sys::IsLittleEndianHost)
sys::swapByteOrder(LinkedAddress);
ArrayRef<uint8_t> AddressBytes(
reinterpret_cast<const uint8_t *>(&LinkedAddress),
Expand Down

0 comments on commit a0a3096

Please sign in to comment.