diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
| commit | b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (patch) | |
| tree | 4847eb648a3d471bdd4b7653a8f83ad5cb4224bd /llvm/lib/CodeGen/SelectionDAG | |
| parent | 5ac2f49516d8624d998873dbd322e22f0ee5f358 (diff) | |
| download | bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.tar.gz bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.zip | |
Move more code back to 2.5 APIs.
llvm-svn: 77635
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 7293144b4e7..189d2556b9e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1789,7 +1789,6 @@ SDValue SelectionDAGLegalize::ExpandSCALAR_TO_VECTOR(SDNode *Node) { /// ExpandBUILD_VECTOR - Expand a BUILD_VECTOR node on targets that don't /// support the operation, but do support the resultant vector type. SDValue SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { - LLVMContext *Context = DAG.getContext(); unsigned NumElems = Node->getNumOperands(); SDValue Value1, Value2; DebugLoc dl = Node->getDebugLoc(); @@ -1840,7 +1839,7 @@ SDValue SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { } else { assert(Node->getOperand(i).getOpcode() == ISD::UNDEF); const Type *OpNTy = OpVT.getTypeForMVT(); - CV.push_back(Context->getUndef(OpNTy)); + CV.push_back(UndefValue::get(OpNTy)); } } Constant *CP = ConstantVector::get(CV); |

