summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-08-15 23:54:44 +0000
committerReid Kleckner <rnk@google.com>2016-08-15 23:54:44 +0000
commit229d32abfce84782a0122965dff2e7d8d7bcc2c1 (patch)
treeb97c894b5cde0f56b59f1a3063db5030fca4caa7
parentc44a12244f3855660d8244152eb40da4d853289e (diff)
downloadbcm5719-llvm-229d32abfce84782a0122965dff2e7d8d7bcc2c1.tar.gz
bcm5719-llvm-229d32abfce84782a0122965dff2e7d8d7bcc2c1.zip
[AMDGPU] Give enum an explicit 64-bit type to fix MSVC 2013 failures
Recall that MSVC always gives enums the type 'int', nothing else. MSVC 2015 does not appear to have this problem anymore. Clang-cl -Wmicrosoft-enum-value flags this, FWIW, so now I have a true positive for my warning. :) llvm-svn: 278762
-rw-r--r--llvm/lib/Target/AMDGPU/R600InstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/R600InstrInfo.h b/llvm/lib/Target/AMDGPU/R600InstrInfo.h
index d967b8afa50..2f91520bdfa 100644
--- a/llvm/lib/Target/AMDGPU/R600InstrInfo.h
+++ b/llvm/lib/Target/AMDGPU/R600InstrInfo.h
@@ -21,7 +21,7 @@
namespace llvm {
namespace R600InstrFlags {
-enum {
+enum : uint64_t {
REGISTER_STORE = UINT64_C(1) << 62,
REGISTER_LOAD = UINT64_C(1) << 63
};
OpenPOWER on IntegriCloud