Fix clang-cl self-host -Wc++11-narrowing bug
[oota-llvm.git] / lib / Target / R600 / AMDGPU.h
index f014d7ac48c337c7f9344a5f24bebef2956aba7b..0a05d25189b0fe5054253922510d32518f79b936 100644 (file)
@@ -105,7 +105,7 @@ namespace ShaderType {
 /// a separate piece of memory that is unique from other
 /// memory locations.
 namespace AMDGPUAS {
-enum AddressSpaces {
+enum AddressSpaces : unsigned {
   PRIVATE_ADDRESS  = 0, ///< Address space for private memory.
   GLOBAL_ADDRESS   = 1, ///< Address space for global memory (RAT0, VTX0).
   CONSTANT_ADDRESS = 2, ///< Address space for constant memory