diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
commit | af7ec975870f92245f1f1484ac80a1e2db6a0afa (patch) | |
tree | b00e71c30dafeea2c63c1b512c0d858e621870fa /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | e7c329bf4b48ba3a4539183dc2d0804db6f4042a (diff) | |
download | external_llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.tar.gz external_llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.tar.bz2 external_llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.zip |
Return ConstantVector to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 4f4c255b08..32f70a74ca 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1849,7 +1849,7 @@ SDValue SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { CV.push_back(Context->getUndef(OpNTy)); } } - Constant *CP = Context->getConstantVector(CV); + Constant *CP = ConstantVector::get(CV); SDValue CPIdx = DAG.getConstantPool(CP, TLI.getPointerTy()); unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment(); return DAG.getLoad(VT, dl, DAG.getEntryNode(), CPIdx, |