summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
Diffstat (limited to 'bolt')
-rw-r--r--bolt/lib/Core/DebugData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/lib/Core/DebugData.cpp b/bolt/lib/Core/DebugData.cpp
index 41289fbcbcad..2b56357df9c0 100644
--- a/bolt/lib/Core/DebugData.cpp
+++ b/bolt/lib/Core/DebugData.cpp
@@ -1166,7 +1166,7 @@ void DebugStrOffsetsWriter::initialize(
"Dwarf String Offsets Byte Size is not supported.");
uint32_t Index = 0;
for (uint64_t Offset = 0; Offset < Contr->Size; Offset += DwarfOffsetByteSize)
- IndexToAddressMap[Index++] = *reinterpret_cast<const uint32_t *>(
+ IndexToAddressMap[Index++] = support::endian::read32le(
StrOffsetsSection.Data.data() + Contr->Base + Offset);
}