mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
Fix the allocation of shadow space for the Win64 calling convention
in X86FastISel. Patch by Jan Sjodin. llvm-svn: 105290
This commit is contained in:
parent
ec24c70e3f
commit
2778840ec1
@ -1391,6 +1391,12 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
|
|||||||
// Analyze operands of the call, assigning locations to each operand.
|
// Analyze operands of the call, assigning locations to each operand.
|
||||||
SmallVector<CCValAssign, 16> ArgLocs;
|
SmallVector<CCValAssign, 16> ArgLocs;
|
||||||
CCState CCInfo(CC, false, TM, ArgLocs, I->getParent()->getContext());
|
CCState CCInfo(CC, false, TM, ArgLocs, I->getParent()->getContext());
|
||||||
|
|
||||||
|
// Allocate shadow area for Win64
|
||||||
|
if (Subtarget->isTargetWin64()) {
|
||||||
|
CCInfo.AllocateStack(32, 8);
|
||||||
|
}
|
||||||
|
|
||||||
CCInfo.AnalyzeCallOperands(ArgVTs, ArgFlags, CCAssignFnForCall(CC));
|
CCInfo.AnalyzeCallOperands(ArgVTs, ArgFlags, CCAssignFnForCall(CC));
|
||||||
|
|
||||||
// Get a count of how many bytes are to be pushed on the stack.
|
// Get a count of how many bytes are to be pushed on the stack.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user