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 | c2c7932c640032063fddab43a13e2c15aa29fda3 (patch) | |
tree | c8345816a0dfb9ce8a8f71cb4aec18b7cd3bbeb3 /llvm/lib/Transforms/Utils/ValueMapper.cpp | |
parent | 2706a550711dd4c85924b78cc1787267e62aec56 (diff) | |
download | bcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.tar.gz bcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.zip |
Change ConstantArray to 2.5 API.
llvm-svn: 77347
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 643805a2f91..673bb0b58e0 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -56,7 +56,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM, LLVMContext &Context) { Values.push_back(cast<Constant>(MV)); for (++i; i != e; ++i) Values.push_back(cast<Constant>(MapValue(*i, VM, Context))); - return VM[V] = Context.getConstantArray(CA->getType(), Values); + return VM[V] = ConstantArray::get(CA->getType(), Values); } } return VM[V] = C; |