summaryrefslogtreecommitdiff
path: root/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 19:46:12 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 19:46:12 +0000
commit01a4db3ed4d199da33fa1ce0e1c7b7b9b1c3ccdf (patch)
treedd257a510c2d5a56a515e93467ed0ca75f3c734c /lib/Object/ELFObjectFile.cpp
parent3773fb46ba530f69530d1c4bafb7885528a27391 (diff)
downloadllvm-01a4db3ed4d199da33fa1ce0e1c7b7b9b1c3ccdf.tar.gz
llvm-01a4db3ed4d199da33fa1ce0e1c7b7b9b1c3ccdf.tar.bz2
llvm-01a4db3ed4d199da33fa1ce0e1c7b7b9b1c3ccdf.tar.xz
Fix GCC again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/ELFObjectFile.cpp')
-rw-r--r--lib/Object/ELFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp
index e427bedb98..6a6870a4e5 100644
--- a/lib/Object/ELFObjectFile.cpp
+++ b/lib/Object/ELFObjectFile.cpp
@@ -762,7 +762,7 @@ error_code ELFObjectFile<target_endianness, is64Bits>
if (Rel.w.c >= (relocsec->sh_size / relocsec->sh_entsize)) {
// We have reached the end of the relocations for this section. See if there
// is another relocation section.
- typename RelocMap_t::mapped_type &relocseclist =
+ typename RelocMap_t::mapped_type relocseclist =
SectionRelocMap.lookup(getSection(Rel.w.a));
// Do a binary search for the current reloc section index (which must be