mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix a crash I introduced into the IA64 backend with my copyfromreg change.
It used to crash on any function that took float arguments. llvm-svn: 22973
This commit is contained in:
parent
2c5f36d938
commit
ef8f06856f
@ -202,7 +202,9 @@ IA64TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
argPreg[count] = args_FP[used_FPArgs++];
|
||||
argOpc[count] = IA64::FMOV;
|
||||
argt = newroot = DAG.getCopyFromReg(DAG.getRoot(), argVreg[count],
|
||||
getValueType(I->getType()));
|
||||
MVT::f64);
|
||||
if (I->getType() == Type::FloatTy)
|
||||
argt = DAG.getNode(ISD::FP_ROUND, MVT::f32, argt);
|
||||
break;
|
||||
case MVT::i1: // NOTE: as far as C abi stuff goes,
|
||||
// bools are just boring old ints
|
||||
|
Loading…
Reference in New Issue
Block a user