OSDN Git Service

Declare GlobalValue::LinkageTypes based on unsigned.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 24 Apr 2016 10:11:45 +0000 (10:11 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 24 Apr 2016 10:11:45 +0000 (10:11 +0000)
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

include/llvm/IR/GlobalValue.h

index 0d12fe8..25e5ba1 100644 (file)
@@ -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)