forked from OSchip/llvm-project
Make sure that bool,byte and short arguments are the right type when loaded
from memory. llvm-svn: 25346
This commit is contained in:
parent
087bb703d7
commit
9d41ecc95b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue