summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-10 18:27:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-10 18:27:33 +0000
commitb2d555b25bee4df71b33bbf9a3d730339b6a4081 (patch)
treef56934191632a62912080bfc7ef43d52a403385f
parent0631fce85050f8f633e5fd032875d9151e0db4da (diff)
downloadllvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.tar.gz
llvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.tar.bz2
llvm-b2d555b25bee4df71b33bbf9a3d730339b6a4081.tar.xz
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
-rw-r--r--lib/VMCore/ConstantsContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantsContext.h b/lib/VMCore/ConstantsContext.h
index fc2d5af991..4b08e04daf 100644
--- a/lib/VMCore/ConstantsContext.h
+++ b/lib/VMCore/ConstantsContext.h
@@ -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());
}
};