forked from OSchip/llvm-project
Remove bogus assertion. This unbreaks mingw, where ConstantSDNode
has alignment 8 and LoadSDNode (used as LargestT template) - 4. llvm-svn: 53782
This commit is contained in:
parent
44831bcb8c
commit
fa8511bf08
|
@ -47,16 +47,12 @@ public:
|
|||
template<class SubClass>
|
||||
SubClass *getElement(SubClass *) {
|
||||
assert(sizeof(SubClass) <= sizeof(LargestT));
|
||||
assert(unsigned(AlignOf<SubClass>::Alignment) <=
|
||||
unsigned(AlignOf<LargestT>::Alignment));
|
||||
return reinterpret_cast<SubClass*>(&Storage.Bytes);
|
||||
}
|
||||
|
||||
template<class SubClass>
|
||||
const SubClass *getElement(SubClass *) const {
|
||||
assert(sizeof(SubClass) <= sizeof(LargestT));
|
||||
assert(unsigned(AlignOf<SubClass>::Alignment) <=
|
||||
unsigned(AlignOf<LargestT>::Alignment));
|
||||
return reinterpret_cast<const SubClass*>(&Storage.Bytes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue