Make sure that bool,byte and short arguments are the right type when loaded

from memory.

llvm-svn: 25346
This commit is contained in:
Chris Lattner 2006-01-15 22:22:01 +00:00
parent 087bb703d7
commit 9d41ecc95b
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ SparcV8TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
Load = DAG.getExtLoad(LoadOp, MVT::i32, Root, FIPtr,
DAG.getSrcValue(0), ObjectVT);
Load = DAG.getNode(ISD::TRUNCATE, ObjectVT, Load);
}
ArgValues.push_back(Load);
}