diff --git a/include/llvm/IR/GlobalValue.h b/include/llvm/IR/GlobalValue.h index 403d1a7a61a..c6398aaa484 100644 --- a/include/llvm/IR/GlobalValue.h +++ b/include/llvm/IR/GlobalValue.h @@ -85,6 +85,9 @@ protected: } Type *ValueType; + + static const unsigned GlobalValueSubClassDataBits = 18; + // All bitfields use unsigned as the underlying type so that MSVC will pack // them. unsigned Linkage : 4; // The linkage of this global @@ -100,8 +103,6 @@ protected: /// Function::intrinsicID() returns Intrinsic::not_intrinsic. unsigned HasLLVMReservedName : 1; - static const unsigned GlobalValueSubClassDataBits = 18; - private: friend class Constant;