mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 04:24:23 +00:00
Fixes due to lack of type-safety for ValueType: (1) ValueType
being passed instead of an opcode; (2) ValueType being passed for isVolatile (!) in getLoad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
448175fd02
commit
a7c97a7f5b
@ -772,7 +772,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
case ISD::STRING:
|
case ISD::STRING:
|
||||||
case ISD::CONDCODE:
|
case ISD::CONDCODE:
|
||||||
// Primitives must all be legal.
|
// Primitives must all be legal.
|
||||||
assert(TLI.isOperationLegal(Node->getValueType(0), Node->getValueType(0)) &&
|
assert(TLI.isOperationLegal(Node->getOpcode(), Node->getValueType(0)) &&
|
||||||
"This must be legal!");
|
"This must be legal!");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2752,7 +2752,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
case ISD::UDIVREM:
|
case ISD::UDIVREM:
|
||||||
// These nodes will only be produced by target-specific lowering, so
|
// These nodes will only be produced by target-specific lowering, so
|
||||||
// they shouldn't be here if they aren't legal.
|
// they shouldn't be here if they aren't legal.
|
||||||
assert(TLI.isOperationLegal(Node->getValueType(0), Node->getValueType(0)) &&
|
assert(TLI.isOperationLegal(Node->getOpcode(), Node->getValueType(0)) &&
|
||||||
"This must be legal!");
|
"This must be legal!");
|
||||||
|
|
||||||
Tmp1 = LegalizeOp(Node->getOperand(0)); // LHS
|
Tmp1 = LegalizeOp(Node->getOperand(0)); // LHS
|
||||||
@ -3521,7 +3521,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
} else {
|
} else {
|
||||||
Result = DAG.getTruncStore(DAG.getEntryNode(), Node->getOperand(0),
|
Result = DAG.getTruncStore(DAG.getEntryNode(), Node->getOperand(0),
|
||||||
StackSlot, NULL, 0, newVT);
|
StackSlot, NULL, 0, newVT);
|
||||||
Result = DAG.getLoad(newVT, Result, StackSlot, NULL, 0, newVT);
|
Result = DAG.getLoad(newVT, Result, StackSlot, NULL, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user