diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2011-07-27 06:22:51 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2011-07-27 06:22:51 +0000 |
commit | a44defeb2208376ca3113ffdddc391570ba865b8 (patch) | |
tree | 838cd3303465775b10091320e66e47e53d29eb9a /lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | |
parent | cbdccdeea96f26198fc8225c1a32c04ca01f8a26 (diff) | |
download | external_llvm-a44defeb2208376ca3113ffdddc391570ba865b8.zip external_llvm-a44defeb2208376ca3113ffdddc391570ba865b8.tar.gz external_llvm-a44defeb2208376ca3113ffdddc391570ba865b8.tar.bz2 |
Explicitly cast narrowing conversions inside {}s that will become errors in
C++0x.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp index 7a56e5c..bd7ee0a 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp +++ b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp @@ -357,7 +357,7 @@ void X86MCCodeEmitter::EmitMemModRMByte(const MCInst &MI, unsigned Op, } // Calculate what the SS field value should be... - static const unsigned SSTable[] = { ~0, 0, 1, ~0, 2, ~0, ~0, ~0, 3 }; + static const unsigned SSTable[] = { ~0U, 0, 1, ~0U, 2, ~0U, ~0U, ~0U, 3 }; unsigned SS = SSTable[Scale.getImm()]; if (BaseReg == 0) { |