summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-10-08 20:15:11 +0000
committerReid Kleckner <reid@kleckner.net>2013-10-08 20:15:11 +0000
commit73f615b0bd822db3a2a8aab2fd4ed58f093c9769 (patch)
tree43bedb2585a17fdf6652429126960d8451956309 /lib/CodeGen/RegAllocGreedy.cpp
parent875857953f2f42108c3ba07243e25738b1a74d0e (diff)
downloadllvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.tar.gz
llvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.tar.bz2
llvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.tar.xz
Explicitly request unsigned enum types when desired
This fixes repeated -Wmicrosoft warnings when self-hosting clang on Windows, and gets us real unsigned enum types with MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index f094c4ca3f..3fa5243220 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -222,7 +222,7 @@ class RAGreedy : public MachineFunctionPass,
/// class.
SmallVector<GlobalSplitCandidate, 32> GlobalCand;
- enum { NoCand = ~0u };
+ enum LLVM_ENUM_INT_TYPE(unsigned) { NoCand = ~0u };
/// Candidate map. Each edge bundle is assigned to a GlobalCand entry, or to
/// NoCand which indicates the stack interval.