fix storing booleans (grawp missed this one)

llvm-svn: 26120
This commit is contained in:
Duraid Madina 2006-02-11 07:33:17 +00:00
parent a514d8d8a6
commit 81b9a8f8f7

View File

@ -556,9 +556,9 @@ void IA64DAGToDAGISel::Select(SDOperand &Result, SDOperand Op) {
// then load 1 into the same reg iff the predicate to store is 1
SDOperand Tmp;
Select(Tmp, N->getOperand(1));
CurDAG->getTargetNode(IA64::TPCADDS, MVT::i64, Initial,
CurDAG->getConstant(1, MVT::i64),
Tmp);
Tmp = SDOperand(CurDAG->getTargetNode(IA64::TPCADDS, MVT::i64, Initial,
CurDAG->getConstant(1, MVT::i64),
Tmp), 0);
Result = CurDAG->SelectNodeTo(N, Opc, MVT::Other, Address, Tmp, Chain);
return;
}