mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Silencing some -Wcast-qual warnings and removing some C-style casts at the same time. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6964a7df9
commit
1ab70ef650
@ -710,7 +710,8 @@ static void printCompressedSecondLevelUnwindPage(
|
||||
|
||||
uint16_t EncodingsStart = readNext<uint16_t>(Pos);
|
||||
readNext<uint16_t>(Pos);
|
||||
auto PageEncodings = (support::ulittle32_t *)(PageStart + EncodingsStart);
|
||||
const auto *PageEncodings = reinterpret_cast<const support::ulittle32_t *>(
|
||||
PageStart + EncodingsStart);
|
||||
|
||||
Pos = PageStart + EntriesStart;
|
||||
for (unsigned i = 0; i < NumEntries; ++i) {
|
||||
@ -891,7 +892,7 @@ printMachOUnwindInfoSection(const MachOObjectFile *Obj,
|
||||
<< format("0x%08" PRIx32, IndexEntries[i].FunctionOffset) << '\n';
|
||||
|
||||
Pos = Contents.data() + IndexEntries[i].SecondLevelPageStart;
|
||||
uint32_t Kind = *(support::ulittle32_t *)Pos;
|
||||
uint32_t Kind = *reinterpret_cast<const support::ulittle32_t *>(Pos);
|
||||
if (Kind == 2)
|
||||
printRegularSecondLevelUnwindPage(Pos);
|
||||
else if (Kind == 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user