diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-10 18:27:33 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-10 18:27:33 +0000 |
commit | b2d555b25bee4df71b33bbf9a3d730339b6a4081 (patch) | |
tree | f56934191632a62912080bfc7ef43d52a403385f /lib/VMCore | |
parent | 0631fce85050f8f633e5fd032875d9151e0db4da (diff) | |
download | external_llvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.zip external_llvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.tar.gz external_llvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.tar.bz2 |
g++ 4.0 doesn't have std::vector::data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/ConstantsContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h index fc2d5af..4b08e04 100644 --- a/lib/VMCore/ConstantsContext.h +++ b/lib/VMCore/ConstantsContext.h @@ -446,7 +446,7 @@ struct ConstantCreator<ConstantAggregateZero, Type, ValType> { template<> struct ConstantCreator<MDNode, Type, std::vector<Value*> > { static MDNode *create(const Type* Ty, const std::vector<Value*> &V) { - return new MDNode(V.data(), V.size()); + return new MDNode(&V[0], V.size()); } }; |