mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Fix Regression/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af6aa077d4
commit
80720a9219
@ -434,7 +434,8 @@ PPCTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
needsLoad = true;
|
||||
}
|
||||
break;
|
||||
case MVT::i64: ObjSize = 8;
|
||||
case MVT::i64:
|
||||
ObjSize = 8;
|
||||
if (!ArgLive) break;
|
||||
if (GPR_remaining > 0) {
|
||||
SDOperand argHi, argLo;
|
||||
@ -530,7 +531,10 @@ PPCTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
SDOperand PtrOff = DAG.getConstant(4, getPointerTy());
|
||||
FIN = DAG.getNode(ISD::ADD, MVT::i32, FIN, PtrOff);
|
||||
}
|
||||
DAG.setRoot(DAG.getNode(ISD::TokenFactor, MVT::Other, MemOps));
|
||||
if (!MemOps.empty()) {
|
||||
MemOps.push_back(DAG.getRoot());
|
||||
DAG.setRoot(DAG.getNode(ISD::TokenFactor, MVT::Other, MemOps));
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, inform the code generator which regs we return values in.
|
||||
|
Loading…
Reference in New Issue
Block a user