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:
Eric Christopher 2014-10-21 20:39:34 +00:00
parent f75b0ee2ab
commit 098f898fd2
1 changed files with 97 additions and 94 deletions

View File

@ -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;