[llvm] r201769 - COFFObjectFile.cpp: Appease msvc in r201760.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Feb 20 01:16:23 PST 2014
Author: chapuni
Date: Thu Feb 20 03:16:23 2014
New Revision: 201769
URL: http://llvm.org/viewvc/llvm-project?rev=201769&view=rev
Log:
COFFObjectFile.cpp: Appease msvc in r201760.
Modified:
llvm/trunk/lib/Object/COFFObjectFile.cpp
Modified: llvm/trunk/lib/Object/COFFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFObjectFile.cpp?rev=201769&r1=201768&r2=201769&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/COFFObjectFile.cpp Thu Feb 20 03:16:23 2014
@@ -383,7 +383,7 @@ error_code COFFObjectFile::initSymbolTab
// Returns the file offset for the given VA.
error_code COFFObjectFile::getVaPtr(uint32_t Addr, uintptr_t &Res) const {
- uint32_t ImageBase = PE32Header ? PE32Header->ImageBase : PE32PlusHeader->ImageBase;
+ uint32_t ImageBase = PE32Header ? PE32Header->ImageBase : (uint32_t)PE32PlusHeader->ImageBase;
return getRvaPtr(Addr - ImageBase, Res);
}
More information about the llvm-commits
mailing list