From: Benjamin Kramer Date: Mon, 10 Aug 2009 18:27:33 +0000 (+0000) Subject: g++ 4.0 doesn't have std::vector::data. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2d555b25bee4df71b33bbf9a3d730339b6a4081;p=oota-llvm.git 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 --- 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()); } };