OSDN Git Service

Revert "Declare GlobalValue::LinkageTypes based on unsigned."
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 24 Apr 2016 14:13:17 +0000 (14:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 24 Apr 2016 14:13:17 +0000 (14:13 +0000)
This reverts commit r267335.  The build has been broken for hours
because of it:

  http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental_build/23352/

The correct fix is avoid using any enum in a bitfield.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267341 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/GlobalValue.h

index 25e5ba1..0d12fe8 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 : unsigned {
+  enum LinkageTypes {
     ExternalLinkage = 0,///< Externally visible function
     AvailableExternallyLinkage, ///< Available for inspection, not emission.
     LinkOnceAnyLinkage, ///< Keep one copy of function when linking (inline)