mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Skip over the label which marks the beginning of the function before inserting prologue code.
llvm-svn: 46546
This commit is contained in:
parent
4a4f50da13
commit
84adda6b67
@ -525,6 +525,12 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
X86FI->getCalleeSavedFrameSize() +(-TailCallReturnAddrDelta));
|
||||
uint64_t NumBytes = StackSize - X86FI->getCalleeSavedFrameSize();
|
||||
|
||||
// Skip over the label which mark the beginning of the function.
|
||||
if (MMI && MMI->needsFrameInfo() &&
|
||||
MBBI != MBB.end() &&
|
||||
MBBI->getOpcode() == X86::LABEL)
|
||||
++MBBI;
|
||||
|
||||
// Insert stack pointer adjustment for later moving of return addr. Only
|
||||
// applies to tail call optimized functions where the callee argument stack
|
||||
// size is bigger than the callers.
|
||||
|
Loading…
Reference in New Issue
Block a user