[llvm] r267335 - Declare GlobalValue::LinkageTypes based on unsigned.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 03:11:47 PDT 2016


Author: chapuni
Date: Sun Apr 24 05:11:45 2016
New Revision: 267335

URL: http://llvm.org/viewvc/llvm-project?rev=267335&view=rev
Log:
Declare GlobalValue::LinkageTypes based on unsigned.

Or, "LinkageTypes Linkage : 4;" might be sign-extended on msc.

Modified:
    llvm/trunk/include/llvm/IR/GlobalValue.h

Modified: llvm/trunk/include/llvm/IR/GlobalValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GlobalValue.h?rev=267335&r1=267334&r2=267335&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/GlobalValue.h (original)
+++ llvm/trunk/include/llvm/IR/GlobalValue.h Sun Apr 24 05:11:45 2016
@@ -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)




More information about the llvm-commits mailing list