From a0a30965d0a9d42e15a48992f8cefede7ca07b9b Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Wed, 17 May 2023 15:21:15 +0200 Subject: [PATCH] Addition to Fddf5bfd6e6e2fc5b94718a29e718b4f821a3b853 Fix test bot breakage from bd0dd27bb5be0fbf60c1b2a4ce15188812388574 This addresses the issue found by: https://lab.llvm.org/buildbot/#/builders/93/builds/14929 --- llvm/lib/DWARFLinker/DWARFLinker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/DWARFLinker/DWARFLinker.cpp b/llvm/lib/DWARFLinker/DWARFLinker.cpp index b87fb98..894c4e5 100644 --- a/llvm/lib/DWARFLinker/DWARFLinker.cpp +++ b/llvm/lib/DWARFLinker/DWARFLinker.cpp @@ -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 AddressBytes( reinterpret_cast(&LinkedAddress), @@ -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 AddressBytes( reinterpret_cast(&LinkedAddress), -- 2.7.4