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 | 4b4974384ddf019b28b07600f05d18826fa9750c (patch) | |
| tree | f56934191632a62912080bfc7ef43d52a403385f | |
| parent | 72e6d32e363964712bf14b8e4374f587ac9103f5 (diff) | |
| download | external_llvm-4b4974384ddf019b28b07600f05d18826fa9750c.zip external_llvm-4b4974384ddf019b28b07600f05d18826fa9750c.tar.gz external_llvm-4b4974384ddf019b28b07600f05d18826fa9750c.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
| -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()); } }; |
