From b2d555b25bee4df71b33bbf9a3d730339b6a4081 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 10 Aug 2009 18:27:33 +0000 Subject: [PATCH] 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(-) diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h index fc2d5af991c..4b08e04dafd 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()); } }; -- 2.34.1