llvm.org GIT mirror llvm / f2a738b
Merging r234977: ------------------------------------------------------------------------ r234977 | lhames | 2015-04-15 00:46:01 -0400 (Wed, 15 Apr 2015) | 5 lines [RuntimeDyld] Add casts to make delta computation 64-bit. Hopefully this will fix the i686/msvc build failure described at: http://bb.pgr.jp/builders/ninja-clang-i686-msc18-R/builds/803 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236784 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
242242 }
243243
244244 static int64_t computeDelta(SectionEntry *A, SectionEntry *B) {
245 int64_t ObjDistance = A->ObjAddress - B->ObjAddress;
245 int64_t ObjDistance =
246 static_cast(A->ObjAddress) - static_cast(B->ObjAddress);
246247 int64_t MemDistance = A->LoadAddress - B->LoadAddress;
247248 return ObjDistance - MemDistance;
248249 }