diff options
| author | Duncan Sands <baldrick@free.fr> | 2007-10-16 09:07:20 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2007-10-16 09:07:20 +0000 |
| commit | 052c84355917bad4e49fa14b3d7a7d57696e4b45 (patch) | |
| tree | 9ba5185fcca3a4946875a0883a6711ec57c34293 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | b3d58b98d0d8dce7eb9362ae9b5a3d5ec1d67ad0 (diff) | |
| download | bcm5719-llvm-052c84355917bad4e49fa14b3d7a7d57696e4b45.tar.gz bcm5719-llvm-052c84355917bad4e49fa14b3d7a7d57696e4b45.zip | |
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.
llvm-svn: 43028
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 7b55e45c341..066090032ba 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -772,7 +772,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { case ISD::STRING: case ISD::CONDCODE: // 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!"); break; default: @@ -2752,7 +2752,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { case ISD::UDIVREM: // These nodes will only be produced by target-specific lowering, so // 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!"); Tmp1 = LegalizeOp(Node->getOperand(0)); // LHS @@ -3521,7 +3521,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { } else { Result = DAG.getTruncStore(DAG.getEntryNode(), Node->getOperand(0), StackSlot, NULL, 0, newVT); - Result = DAG.getLoad(newVT, Result, StackSlot, NULL, 0, newVT); + Result = DAG.getLoad(newVT, Result, StackSlot, NULL, 0); } break; } |

