From: NAKAMURA Takumi Date: Sun, 24 Apr 2016 10:11:45 +0000 (+0000) Subject: Declare GlobalValue::LinkageTypes based on unsigned. X-Git-Tag: android-x86-7.1-r4~34660 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=67d948482b720d449acfec087810b6161e1b2039;p=android-x86%2Fexternal-llvm.git Declare GlobalValue::LinkageTypes based on unsigned. Or, "LinkageTypes Linkage : 4;" might be sign-extended on msc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267335 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/GlobalValue.h b/include/llvm/IR/GlobalValue.h index 0d12fe86819..25e5ba18924 100644 --- a/include/llvm/IR/GlobalValue.h +++ b/include/llvm/IR/GlobalValue.h @@ -37,7 +37,7 @@ class GlobalValue : public Constant { GlobalValue(const GlobalValue &) = delete; public: /// @brief An enumeration for the kinds of linkage for global values. - enum LinkageTypes { + enum LinkageTypes : unsigned { ExternalLinkage = 0,///< Externally visible function AvailableExternallyLinkage, ///< Available for inspection, not emission. LinkOnceAnyLinkage, ///< Keep one copy of function when linking (inline)