[llvm-commits] [llvm] r122829 - /llvm/trunk/lib/Target/X86/X86FrameInfo.cpp
Dale Johannesen
dalej at apple.com
Tue Jan 4 11:31:24 PST 2011
Author: johannes
Date: Tue Jan 4 13:31:24 2011
New Revision: 122829
URL: http://llvm.org/viewvc/llvm-project?rev=122829&view=rev
Log:
Eliminate a warning compiling with llvm-gcc. (IMO the
warning is overzealous but gcc is what it is.)
Modified:
llvm/trunk/lib/Target/X86/X86FrameInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameInfo.cpp?rev=122829&r1=122828&r2=122829&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameInfo.cpp Tue Jan 4 13:31:24 2011
@@ -153,7 +153,7 @@
if (ThisVal == (Is64Bit ? 8 : 4)) {
// Use push / pop instead.
unsigned Reg = isSub
- ? (Is64Bit ? X86::RAX : X86::EAX)
+ ? (unsigned)(Is64Bit ? X86::RAX : X86::EAX)
: findDeadCallerSavedReg(MBB, MBBI, TRI, Is64Bit);
if (Reg) {
Opc = isSub
More information about the llvm-commits
mailing list