mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Silencing some -Wcast-qual warnings and removing some C-style casts at the same time. NFC.
llvm-svn: 215643
This commit is contained in:
parent
5e89d939ac
commit
6d69684c08
@ -710,7 +710,8 @@ static void printCompressedSecondLevelUnwindPage(
|
|||||||
|
|
||||||
uint16_t EncodingsStart = readNext<uint16_t>(Pos);
|
uint16_t EncodingsStart = readNext<uint16_t>(Pos);
|
||||||
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;
|
Pos = PageStart + EntriesStart;
|
||||||
for (unsigned i = 0; i < NumEntries; ++i) {
|
for (unsigned i = 0; i < NumEntries; ++i) {
|
||||||
@ -891,7 +892,7 @@ printMachOUnwindInfoSection(const MachOObjectFile *Obj,
|
|||||||
<< format("0x%08" PRIx32, IndexEntries[i].FunctionOffset) << '\n';
|
<< format("0x%08" PRIx32, IndexEntries[i].FunctionOffset) << '\n';
|
||||||
|
|
||||||
Pos = Contents.data() + IndexEntries[i].SecondLevelPageStart;
|
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)
|
if (Kind == 2)
|
||||||
printRegularSecondLevelUnwindPage(Pos);
|
printRegularSecondLevelUnwindPage(Pos);
|
||||||
else if (Kind == 3)
|
else if (Kind == 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user