diff options
Diffstat (limited to 'ELF/EhFrame.cpp')
-rw-r--r-- | ELF/EhFrame.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ELF/EhFrame.cpp b/ELF/EhFrame.cpp index c4e3f65c7..e29110cea 100644 --- a/ELF/EhFrame.cpp +++ b/ELF/EhFrame.cpp @@ -154,8 +154,7 @@ template <class ELFT> void EhReader<ELFT>::skipAugP() { } template <class ELFT> uint8_t elf::getFdeEncoding(EhSectionPiece *P) { - auto *IS = static_cast<InputSectionBase *>(P->ID); - return EhReader<ELFT>(IS, P->data()).getFdeEncoding(); + return EhReader<ELFT>(P->Sec, P->data()).getFdeEncoding(); } template <class ELFT> uint8_t EhReader<ELFT>::getFdeEncoding() { |