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
This commit is contained in:
Benjamin Kramer 2009-08-10 18:27:33 +00:00
parent 0631fce850
commit b2d555b25b

View File

@ -446,7 +446,7 @@ struct ConstantCreator<ConstantAggregateZero, Type, ValType> {
template<> template<>
struct ConstantCreator<MDNode, Type, std::vector<Value*> > { struct ConstantCreator<MDNode, Type, std::vector<Value*> > {
static MDNode *create(const Type* Ty, const std::vector<Value*> &V) { 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());
} }
}; };