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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175458 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index eb9f865085be0b621e70f614ad62fde33d9b0018..038c39532f8ae1486234bc6e1c4b88646b510b55 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);
         }