aboutsummaryrefslogtreecommitdiff
path: root/ELF/EhFrame.cpp
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2017-11-13 16:15:47 -0800
committerYi Kong <yikong@google.com>2017-11-13 16:15:47 -0800
commita38dd38df4bafa4723031ea79543e01a68a3ebbb (patch)
treee91948028ed865d9cbaeb61f4706263b4e44e86f /ELF/EhFrame.cpp
parentfc51a9828c2bece1d3cec27b0b3edbcf3f35467b (diff)
parentc9e633dcb3997ab998bcedcf11d4e36d5af44a6c (diff)
downloadlld-llvm-r316199.tar.gz
Merge c9e633dcb for LLVM update to 316199llvm-r316199
Change-Id: Ia98560b5d3a898fddb952da4f918778a9f9f4db0
Diffstat (limited to 'ELF/EhFrame.cpp')
-rw-r--r--ELF/EhFrame.cpp3
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() {