Fix MSVC warning: "is out of range for enum constant"
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 15:58:10 +0000 (15:58 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 15:58:10 +0000 (15:58 +0000)
MSVC doesn't support 64 bit enum.
OpcodeMask is not used anywhere in the code base.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132057 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.h

index 8da68b5701779e6bf7888d4806e3b59981a7728e..1ce60f96240f349fa913e5284384cb6cafe1ce62 100644 (file)
@@ -449,7 +449,7 @@ namespace X86II {
     SSEDomainShift = SegOvrShift + 2,
 
     OpcodeShift   = SSEDomainShift + 2,
-    OpcodeMask    = 0xFFULL << OpcodeShift,
+    OpcodeMask    = 0xFFUL << OpcodeShift,
 
     //===------------------------------------------------------------------===//
     /// VEX - The opcode prefix used by AVX instructions