[llvm-commits] [llvm] r78579 - /llvm/trunk/lib/VMCore/ConstantsContext.h
Benjamin Kramer
benny.kra at googlemail.com
Mon Aug 10 11:27:34 PDT 2009
Author: d0k
Date: Mon Aug 10 13:27:33 2009
New Revision: 78579
URL: http://llvm.org/viewvc/llvm-project?rev=78579&view=rev
Log:
g++ 4.0 doesn't have std::vector::data.
Modified:
llvm/trunk/lib/VMCore/ConstantsContext.h
Modified: llvm/trunk/lib/VMCore/ConstantsContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantsContext.h?rev=78579&r1=78578&r2=78579&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ConstantsContext.h (original)
+++ llvm/trunk/lib/VMCore/ConstantsContext.h Mon Aug 10 13:27:33 2009
@@ -446,7 +446,7 @@
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());
}
};
More information about the llvm-commits
mailing list