Fix a broken assertion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-25 00:19:12 +00:00
parent 7cad4f2089
commit ed7956bfe4

View File

@ -987,7 +987,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
DestReg = GPR[GPR_idx++];
RegTy = MVT::i32;
} else {
assert(MVT::isFloatingPoint(Op.getValueType()) &&
assert(MVT::isFloatingPoint(N->getOperand(i).getValueType()) &&
"Unpromoted integer arg?");
assert(FPR_idx < 13 && "Too many fp args");
DestReg = FPR[FPR_idx++];