summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-28 18:32:17 +0000
committerOwen Anderson <resistor@mac.com>2009-07-28 18:32:17 +0000
commitc2c7932c640032063fddab43a13e2c15aa29fda3 (patch)
treec8345816a0dfb9ce8a8f71cb4aec18b7cd3bbeb3 /llvm/lib/CodeGen/SelectionDAG
parent2706a550711dd4c85924b78cc1787267e62aec56 (diff)
downloadbcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.tar.gz
bcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.zip
Change ConstantArray to 2.5 API.
llvm-svn: 77347
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 1ed1585544c..aacd9e847aa 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5812,7 +5812,7 @@ SDValue DAGCombiner::SimplifySelectCC(DebugLoc DL, SDValue N0, SDValue N1,
const TargetData &TD = *TLI.getTargetData();
// Create a ConstantArray of the two constants.
- Constant *CA = DAG.getContext()->getConstantArray(
+ Constant *CA = ConstantArray::get(
DAG.getContext()->getArrayType(FPTy, 2), Elts, 2);
SDValue CPIdx = DAG.getConstantPool(CA, TLI.getPointerTy(),
TD.getPrefTypeAlignment(FPTy));
OpenPOWER on IntegriCloud