forked from OSchip/llvm-project
Move anonymous types declared in an anonymous union to
outside the anonymous union as it's a language extension we don't normally support. llvm-svn: 220320
This commit is contained in:
parent
f75b0ee2ab
commit
098f898fd2
|
@ -190,8 +190,7 @@ protected:
|
|||
}
|
||||
}
|
||||
|
||||
union {
|
||||
struct {
|
||||
struct InlinedIndexes {
|
||||
public:
|
||||
void SetIndexes(uint64_t value, Process& p)
|
||||
{
|
||||
|
@ -269,8 +268,8 @@ protected:
|
|||
return {0,false};
|
||||
}
|
||||
|
||||
} m_inlined;
|
||||
struct {
|
||||
};
|
||||
struct OutsourcedIndexes {
|
||||
ValueObject *m_indexes;
|
||||
size_t m_count;
|
||||
|
||||
|
@ -284,7 +283,11 @@ protected:
|
|||
}
|
||||
return nullptr;
|
||||
}
|
||||
} m_outsourced;
|
||||
};
|
||||
|
||||
union {
|
||||
struct InlinedIndexes m_inlined;
|
||||
struct OutsourcedIndexes m_outsourced;
|
||||
};
|
||||
} m_impl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue