[llvm] r175458 - Fix a 32/64 bit incompatibility in the HiPE prologue generation.
Benjamin Kramer
benny.kra at googlemail.com
Mon Feb 18 13:45:01 PST 2013
Author: d0k
Date: Mon Feb 18 15:45:01 2013
New Revision: 175458
URL: http://llvm.org/viewvc/llvm-project?rev=175458&view=rev
Log:
Fix a 32/64 bit incompatibility in the HiPE prologue generation.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=175458&r1=175457&r2=175458&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Mon Feb 18 15:45:01 2013
@@ -1682,7 +1682,7 @@ void X86FrameLowering::adjustForHiPEProl
continue;
const uint64_t CalleeStkArity =
- std::max<int64_t>(0, F->arg_size() - CCRegisteredArgs);
+ std::max<ssize_t>(0, F->arg_size() - CCRegisteredArgs);
MoreStackForCalls = std::max<int64_t>(
MoreStackForCalls, (HipeLeafWords - 1 - CalleeStkArity) * SlotSize);
}
More information about the llvm-commits
mailing list