diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-10-08 20:15:11 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-10-08 20:15:11 +0000 |
commit | 73f615b0bd822db3a2a8aab2fd4ed58f093c9769 (patch) | |
tree | 43bedb2585a17fdf6652429126960d8451956309 /include | |
parent | 875857953f2f42108c3ba07243e25738b1a74d0e (diff) | |
download | external_llvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.zip external_llvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.tar.gz external_llvm-73f615b0bd822db3a2a8aab2fd4ed58f093c9769.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 371ac6c..ccba1b0 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -248,7 +248,7 @@ namespace llvm { /// SUnit - Scheduling unit. This is a node in the scheduling DAG. class SUnit { private: - enum { BoundaryID = ~0u }; + enum LLVM_ENUM_INT_TYPE(unsigned) { BoundaryID = ~0u }; SDNode *Node; // Representative node. MachineInstr *Instr; // Alternatively, a MachineInstr. |