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 | 02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71 (patch) | |
tree | c06618ee06936e7f5a1dc3c30b313ee49d5eb09b /lib/Transforms/Scalar/MemCpyOptimizer.cpp | |
parent | c9dc5497d5a4bba7ae3c26bdb25c7975739bc633 (diff) | |
download | external_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.zip external_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.tar.gz external_llvm-02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71.tar.bz2 |
Move ConstantExpr to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/MemCpyOptimizer.cpp')
-rw-r--r-- | lib/Transforms/Scalar/MemCpyOptimizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/lib/Transforms/Scalar/MemCpyOptimizer.cpp index c359e47..afbed37 100644 --- a/lib/Transforms/Scalar/MemCpyOptimizer.cpp +++ b/lib/Transforms/Scalar/MemCpyOptimizer.cpp @@ -44,9 +44,9 @@ static Value *isBytewiseValue(Value *V, LLVMContext& Context) { // corresponding integer value is "byteable". An important case is 0.0. if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) { if (CFP->getType() == Type::FloatTy) - V = Context.getConstantExprBitCast(CFP, Type::Int32Ty); + V = ConstantExpr::getBitCast(CFP, Type::Int32Ty); if (CFP->getType() == Type::DoubleTy) - V = Context.getConstantExprBitCast(CFP, Type::Int64Ty); + V = ConstantExpr::getBitCast(CFP, Type::Int64Ty); // Don't handle long double formats, which have strange constraints. } |