mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-10 02:29:32 +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<>
|
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());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user