diff options
| author | George Rimar <grimar@accesssoftek.com> | 2016-06-20 10:01:50 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2016-06-20 10:01:50 +0000 |
| commit | 06e930d37add0669bc05b2a0311fdf20051f22a8 (patch) | |
| tree | f4ec052778fd345ef5e1eac42823e6af9aa464a2 | |
| parent | 720521559114a6941a77fc15a2a5f07e211793a6 (diff) | |
| download | bcm5719-llvm-06e930d37add0669bc05b2a0311fdf20051f22a8.tar.gz bcm5719-llvm-06e930d37add0669bc05b2a0311fdf20051f22a8.zip | |
Fixed compilation error under MSVS 2015 (looks like compiler bug). NFC.
llvm-svn: 273142
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 1f6151819aa..040657a6b81 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -271,7 +271,8 @@ template <class ELFT> void GotSection<ELFT>::writeMipsGot(uint8_t *&Buf) { auto AddEntry = [&](const MipsGotEntry &SA) { uint8_t *Entry = Buf; Buf += sizeof(uintX_t); - uintX_t VA = SA.first->template getVA<ELFT>(SA.second); + const SymbolBody* Body = SA.first; + uintX_t VA = Body->template getVA<ELFT>(SA.second); write<uintX_t, ELFT::TargetEndianness, sizeof(uintX_t)>(Entry, VA); }; std::for_each(std::begin(MipsLocal), std::end(MipsLocal), AddEntry); |

