diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-29 18:55:55 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-29 18:55:55 +0000 |
| commit | 487375e9a2c9bd64869aab778ef26770ed4bef67 (patch) | |
| tree | c6360f5a96c7c7ced626d13ed8c98de3f99391ec /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | ade90fd1ba0c99780076c11ff0a23c2aa5319228 (diff) | |
| download | bcm5719-llvm-487375e9a2c9bd64869aab778ef26770ed4bef67.tar.gz bcm5719-llvm-487375e9a2c9bd64869aab778ef26770ed4bef67.zip | |
Move ConstantExpr to 2.5 API.
llvm-svn: 77494
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 32f70a74caf..e3709a5aae5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -363,7 +363,7 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, TLI.isLoadExtLegal(ISD::EXTLOAD, SVT) && TLI.ShouldShrinkFPConstant(OrigVT)) { const Type *SType = SVT.getTypeForMVT(*DAG.getContext()); - LLVMC = cast<ConstantFP>(Context->getConstantExprFPTrunc(LLVMC, SType)); + LLVMC = cast<ConstantFP>(ConstantExpr::getFPTrunc(LLVMC, SType)); VT = SVT; Extend = true; } |

