mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-29 08:16:51 +00:00
silence a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1975,13 +1975,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
case TargetLowering::Custom: {
|
case TargetLowering::Custom: {
|
||||||
SDOperand Tmp = TLI.LowerOperation(Result, DAG);
|
SDOperand Tmp = TLI.LowerOperation(Result, DAG);
|
||||||
if (Tmp.Val) {
|
if (Tmp.Val) {
|
||||||
SDOperand Tmp2, RetVal;
|
SDOperand Tmp2, RetVal(0,0);
|
||||||
for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i) {
|
for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i) {
|
||||||
Tmp2 = LegalizeOp(Tmp.getValue(i));
|
Tmp2 = LegalizeOp(Tmp.getValue(i));
|
||||||
AddLegalizedOperand(SDOperand(Node, i), Tmp2);
|
AddLegalizedOperand(SDOperand(Node, i), Tmp2);
|
||||||
if (i == Op.ResNo)
|
if (i == Op.ResNo)
|
||||||
RetVal = Tmp;
|
RetVal = Tmp;
|
||||||
}
|
}
|
||||||
|
assert(RetVal.Val && "Illegal result number");
|
||||||
return RetVal;
|
return RetVal;
|
||||||
}
|
}
|
||||||
// FALLTHROUGH if the target thinks it is legal.
|
// FALLTHROUGH if the target thinks it is legal.
|
||||||
|
|||||||
Reference in New Issue
Block a user