summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-07-10 22:46:02 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-07-10 22:46:02 +0000
commita5c7051a60066958ec62503e637e6b58b774cbe0 (patch)
treeb30346defc8ea3cb289f3b3629426a76e198b1f4 /llvm/lib/IR
parent754e21f24462b5690707580d5f14220ea363ee19 (diff)
downloadbcm5719-llvm-a5c7051a60066958ec62503e637e6b58b774cbe0.tar.gz
bcm5719-llvm-a5c7051a60066958ec62503e637e6b58b774cbe0.zip
[IR] Switch static const to an enum to silence MSVC linker warnings
Integral class statics are handled oddly in MSVC, we don't need them in this case, use an enum instead. llvm-svn: 241958
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index 78d1adb5e70..f554d590284 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -39,8 +39,6 @@ using namespace llvm;
//===----------------------------------------------------------------------===//
// Value Class
//===----------------------------------------------------------------------===//
-const unsigned Value::NumUserOperandsBits;
-
static inline Type *checkType(Type *Ty) {
assert(Ty && "Value defined with a null type: Error!");
return Ty;
OpenPOWER on IntegriCloud