diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 18:32:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 18:32:17 +0000 |
commit | 1fd7096407d5e598ed3366a1141548e71273f1c5 (patch) | |
tree | 1d75f632724874d39fcab0f961b588afe4dbadbd /lib/Transforms/Scalar/SimplifyLibCalls.cpp | |
parent | 8e7c38e17b4c3eef8c079004f01329b7bd2bb24a (diff) | |
download | external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.tar.gz external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.tar.bz2 external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.zip |
Change ConstantArray to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 0bf583a52a..506ba1fdb6 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -1290,7 +1290,7 @@ struct VISIBILITY_HIDDEN PrintFOpt : public LibCallOptimization { // Create a string literal with no \n on it. We expect the constant merge // pass to be run after this pass, to merge duplicate strings. FormatStr.erase(FormatStr.end()-1); - Constant *C = Context->getConstantArray(FormatStr, true); + Constant *C = ConstantArray::get(FormatStr, true); C = new GlobalVariable(*Callee->getParent(), C->getType(), true, GlobalVariable::InternalLinkage, C, "str"); EmitPutS(C, B); |