Fixed compilation error under MSVS 2015 (looks like compiler bug). NFC.

llvm-svn: 273142
This commit is contained in:
George Rimar
2016-06-20 10:01:50 +00:00
parent 7205215591
commit 06e930d37a

View File

@@ -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);