aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-11 15:55:00 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-11 15:55:00 +0000
commit1fe2d1e6d428cd34e51252a3d822ffa5eb5db5e4 (patch)
tree3c26d2febb186f6019172fd8dcd95093a8707005
parenta245e40a55b23d1b800ce4732793bea9e10402b6 (diff)
downloadllvm-1fe2d1e6d428cd34e51252a3d822ffa5eb5db5e4.zip
llvm-1fe2d1e6d428cd34e51252a3d822ffa5eb5db5e4.tar.gz
llvm-1fe2d1e6d428cd34e51252a3d822ffa5eb5db5e4.tar.bz2
Convert a few size_t I missed in the previous commit. Sorry about that.
llvm-svn: 252745
-rw-r--r--lld/ELF/InputSection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 5991563..ec66fc9 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -170,7 +170,7 @@ MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
// Find the element this offset points to.
auto I = std::upper_bound(
Offsets.begin(), Offsets.end(), Offset,
- [](const uintX_t &A, const std::pair<uintX_t, size_t> &B) {
+ [](const uintX_t &A, const std::pair<uintX_t, uintX_t> &B) {
return A < B.first;
});
uintX_t End = I == Offsets.end() ? Data.size() : I->first;
@@ -180,7 +180,7 @@ MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
// Compute the Addend and if the Base is cached, return.
uintX_t Addend = Offset - Start;
uintX_t &Base = I->second;
- if (Base != size_t(-1))
+ if (Base != uintX_t(-1))
return Base + Addend;
// Map the base to the offset in the output section and cashe it.