mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Use read{16,32,64}{le,be}() instead of *reinterpret_cast<u{little,big}{16,32,64}_t>().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2058,7 +2058,7 @@ static uint64_t makeTypeSignature(StringRef Identifier) {
|
||||
// appropriately.
|
||||
MD5::MD5Result Result;
|
||||
Hash.final(Result);
|
||||
return *reinterpret_cast<support::ulittle64_t *>(Result + 8);
|
||||
return support::endian::read64le(Result + 8);
|
||||
}
|
||||
|
||||
void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
|
||||
|
||||
Reference in New Issue
Block a user