MSVC2012 does not choose to use uint64_t as underlying type without this.

MSVC2012 seems to choose int as the underlying type for an enum even if one of
its member is unsigned long long.

llvm-svn: 200519
This commit is contained in:
Rui Ueyama 2014-01-31 06:28:32 +00:00
parent 14876abb3d
commit d0d01c66ba

View File

@ -250,10 +250,10 @@ protected:
virtual std::unique_ptr<File> createUndefinedSymbolFile() const;
private:
enum {
enum : uint64_t {
invalidBaseAddress = UINT64_MAX,
pe32DefaultBaseAddress = 0x400000UL,
pe32PlusDefaultBaseAddress = 0x140000000UL
pe32DefaultBaseAddress = 0x400000U,
pe32PlusDefaultBaseAddress = 0x140000000U
};
// The start address for the program. The default value for the executable is