From 4b4974384ddf019b28b07600f05d18826fa9750c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 10 Aug 2009 18:27:33 +0000 Subject: 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 --- lib/VMCore/ConstantsContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { template<> struct ConstantCreator > { static MDNode *create(const Type* Ty, const std::vector &V) { - return new MDNode(V.data(), V.size()); + return new MDNode(&V[0], V.size()); } }; -- cgit v1.1