diff options
| author | Richard Osborne <richard@xmos.com> | 2011-08-01 16:45:59 +0000 |
|---|---|---|
| committer | Richard Osborne <richard@xmos.com> | 2011-08-01 16:45:59 +0000 |
| commit | 965b891762b4ec62475a7859a7c8453427064ff9 (patch) | |
| tree | b2811a199007272e8ecbdc8a88b083366ff78c97 /lib/Target/XCore/XCoreISelLowering.cpp | |
| parent | 32ab312e3f1987eeb8dbfe0917d980497e88a61c (diff) | |
Fix crash with varargs function with no named parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreISelLowering.cpp')
| -rw-r--r-- | lib/Target/XCore/XCoreISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreISelLowering.cpp b/lib/Target/XCore/XCoreISelLowering.cpp index 21a119e376..d23cfe0b92 100644 --- a/lib/Target/XCore/XCoreISelLowering.cpp +++ b/lib/Target/XCore/XCoreISelLowering.cpp @@ -1148,10 +1148,10 @@ XCoreTargetLowering::LowerCCCArguments(SDValue Chain, int offset = 0; // Save remaining registers, storing higher register numbers at a higher // address - for (unsigned i = array_lengthof(ArgRegs) - 1; i >= FirstVAReg; --i) { + for (int i = array_lengthof(ArgRegs) - 1; i >= (int)FirstVAReg; --i) { // Create a stack slot int FI = MFI->CreateFixedObject(4, offset, true); - if (i == FirstVAReg) { + if (i == (int)FirstVAReg) { XFI->setVarArgsFrameIndex(FI); } offset -= StackSlotSize; |
