mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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:
parent
0631fce850
commit
b2d555b25b
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user