diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-15 21:51:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-15 21:51:10 +0000 |
commit | f945a9ed07773d9f2f9d631d7540b18f8ebccb04 (patch) | |
tree | be301ffe0d5fba090f05d008ffcb2bef131b2ebc /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | d098c5a0fc9273fda89a50c4fc4bc4210ffb947d (diff) | |
download | bcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.tar.gz bcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.zip |
Move a few more convenience factory functions from Constant to LLVMContext.
llvm-svn: 75840
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 499939beac2..4b2ee0e854f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2140,7 +2140,7 @@ void SelectionDAGLowering::visitFSub(User &I) { const Type *ElTy = DestTy->getElementType(); unsigned VL = DestTy->getNumElements(); std::vector<Constant*> NZ(VL, Context->getConstantFPNegativeZero(ElTy)); - Constant *CNZ = ConstantVector::get(&NZ[0], NZ.size()); + Constant *CNZ = DAG.getContext()->getConstantVector(&NZ[0], NZ.size()); if (CV == CNZ) { SDValue Op2 = getValue(I.getOperand(1)); setValue(&I, DAG.getNode(ISD::FNEG, getCurDebugLoc(), |