aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegAllocFast.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
commitcd4a25d66ebb16c756ab33a7673c2aa073e8120c (patch)
treea4f0183d2e042582b262454c4eeddac080d9ff5f /llvm/lib/CodeGen/RegAllocFast.cpp
parent02461d02186edc0e7a9c23817ac3da235b6a488d (diff)
downloadllvm-cd4a25d66ebb16c756ab33a7673c2aa073e8120c.zip
llvm-cd4a25d66ebb16c756ab33a7673c2aa073e8120c.tar.gz
llvm-cd4a25d66ebb16c756ab33a7673c2aa073e8120c.tar.bz2
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. llvm-svn: 192227
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 6c2e60b..e92dbd2 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -144,7 +144,7 @@ namespace {
// not be erased.
bool isBulkSpilling;
- enum {
+ enum LLVM_ENUM_INT_TYPE(unsigned) {
spillClean = 1,
spillDirty = 100,
spillImpossible = ~0u