g++ 4.0 doesn't have std::vector::data.

llvm-svn: 78579
This commit is contained in:
Benjamin Kramer 2009-08-10 18:27:33 +00:00
parent 68f0d31f25
commit 850e0f9e7e
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
};