mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Fixed incorrect assertion: spill code for function ptr should be
handled like normal operands, not like other call arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac67006bed
commit
ad9c978874
@ -592,9 +592,10 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR,
|
||||
const BasicBlock *BB,
|
||||
const unsigned OpNum) {
|
||||
|
||||
assert(! TM.getInstrInfo().isCall(MInst->getOpCode()) &&
|
||||
(! TM.getInstrInfo().isReturn(MInst->getOpCode())) &&
|
||||
"Arg of a call/ret must be handled elsewhere");
|
||||
assert((! TM.getInstrInfo().isCall(MInst->getOpCode()) || OpNum == 0) &&
|
||||
"Outgoing arg of a call must be handled elsewhere (func arg ok)");
|
||||
assert(! TM.getInstrInfo().isReturn(MInst->getOpCode()) &&
|
||||
"Return value of a ret must be handled elsewhere");
|
||||
|
||||
MachineOperand& Op = MInst->getOperand(OpNum);
|
||||
bool isDef = MInst->operandIsDefined(OpNum);
|
||||
|
@ -592,9 +592,10 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR,
|
||||
const BasicBlock *BB,
|
||||
const unsigned OpNum) {
|
||||
|
||||
assert(! TM.getInstrInfo().isCall(MInst->getOpCode()) &&
|
||||
(! TM.getInstrInfo().isReturn(MInst->getOpCode())) &&
|
||||
"Arg of a call/ret must be handled elsewhere");
|
||||
assert((! TM.getInstrInfo().isCall(MInst->getOpCode()) || OpNum == 0) &&
|
||||
"Outgoing arg of a call must be handled elsewhere (func arg ok)");
|
||||
assert(! TM.getInstrInfo().isReturn(MInst->getOpCode()) &&
|
||||
"Return value of a ret must be handled elsewhere");
|
||||
|
||||
MachineOperand& Op = MInst->getOperand(OpNum);
|
||||
bool isDef = MInst->operandIsDefined(OpNum);
|
||||
|
Loading…
Reference in New Issue
Block a user