mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Fix build breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f41901d32c
commit
fb4b4c166e
@ -384,7 +384,8 @@ error_code COFFObjectFile::initSymbolTablePtr() {
|
||||
|
||||
// Returns the file offset for the given VA.
|
||||
error_code COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const {
|
||||
uint64_t ImageBase = PE32Header ? PE32Header->ImageBase : PE32PlusHeader->ImageBase;
|
||||
uint64_t ImageBase = PE32Header ? (uint64_t)PE32Header->ImageBase
|
||||
: (uint64_t)PE32PlusHeader->ImageBase;
|
||||
uint64_t Rva = Addr - ImageBase;
|
||||
assert(Rva <= UINT32_MAX);
|
||||
return getRvaPtr((uint32_t)Rva, Res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user