aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-06 23:35:53 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-06 23:35:53 +0000
commit795ee9dd1e43d9e3ba87c052f721b6f7a2161827 (patch)
tree8b91d05fad9493c5f1d18d5291a358e77694bccd /lib/Target/SystemZ
parent49d915bb9a60b1dc9d1b5313dc8849427a034dfa (diff)
downloadexternal_llvm-795ee9dd1e43d9e3ba87c052f721b6f7a2161827.zip
external_llvm-795ee9dd1e43d9e3ba87c052f721b6f7a2161827.tar.gz
external_llvm-795ee9dd1e43d9e3ba87c052f721b6f7a2161827.tar.bz2
Fix a number of clang -Wsign-compare warnings that didn't have an obvious
solution. The only reason these don't fire with gcc-4.2 is that gcc turns off part of -Wsign-compare in C++ on accident. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r--lib/Target/SystemZ/SystemZRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/lib/Target/SystemZ/SystemZRegisterInfo.cpp
index 302c418..5e325c0 100644
--- a/lib/Target/SystemZ/SystemZRegisterInfo.cpp
+++ b/lib/Target/SystemZ/SystemZRegisterInfo.cpp
@@ -200,7 +200,7 @@ void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
uint64_t ThisVal = (Offset > Chunk) ? Chunk : Offset;
MachineInstr *MI =
BuildMI(MBB, MBBI, DL, TII.get(Opc), SystemZ::R15D)
- .addReg(SystemZ::R15D).addImm((isSub ? -(int64_t)ThisVal : ThisVal));
+ .addReg(SystemZ::R15D).addImm(isSub ? -ThisVal : ThisVal);
// The PSW implicit def is dead.
MI->getOperand(3).setIsDead();
Offset -= ThisVal;