From d0d01c66ba0105090b58d1eec8cc3df4d4aa321e Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 31 Jan 2014 06:28:32 +0000 Subject: [PATCH] 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 --- lld/include/lld/ReaderWriter/PECOFFLinkingContext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h b/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h index fdc8c10c9a6c..8aebdd23ca0e 100644 --- a/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h +++ b/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h @@ -250,10 +250,10 @@ protected: virtual std::unique_ptr 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