diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-23 13:22:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-23 13:22:30 +0000 |
commit | 7eac03220344d1b558ea6690cf73d2b76c7e551e (patch) | |
tree | 5b92226183c862a9dc8edd92009eb555698ef199 /lib | |
parent | fa03ff99b2932d24860b51e0a292e36cfd6f21d6 (diff) | |
download | external_llvm-7eac03220344d1b558ea6690cf73d2b76c7e551e.zip external_llvm-7eac03220344d1b558ea6690cf73d2b76c7e551e.tar.gz external_llvm-7eac03220344d1b558ea6690cf73d2b76c7e551e.tar.bz2 |
Fix 32 bit build in c++11 mode.
The error was:
error: non-constant-expression cannot be narrowed from type 'long long' to 'long' in initializer list [-Wc++11-narrowing]
MI.getOperand(6).getImm() & 0x1F,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp b/lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp index 8b8637b..4d6c25c 100644 --- a/lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp +++ b/lib/Target/R600/MCTargetDesc/R600MCCodeEmitter.cpp @@ -113,7 +113,7 @@ void R600MCCodeEmitter::EncodeInstruction(const MCInst &MI, raw_ostream &OS, MI.getOperand(4).getImm(), MI.getOperand(5).getImm() }; - long Offsets[3] = { + int64_t Offsets[3] = { MI.getOperand(6).getImm() & 0x1F, MI.getOperand(7).getImm() & 0x1F, MI.getOperand(8).getImm() & 0x1F |