Fix a 32/64 bit incompatibility in the HiPE prologue generation.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 18 Feb 2013 21:45:01 +0000 (21:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 18 Feb 2013 21:45:01 +0000 (21:45 +0000)
llvm-svn: 175458

llvm/lib/Target/X86/X86FrameLowering.cpp

index eb9f865..038c395 100644 (file)
@@ -1682,7 +1682,7 @@ void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const {
             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);
         }