Remove bogus assertion. This unbreaks mingw, where ConstantSDNode

has alignment 8 and LoadSDNode (used as LargestT template) - 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-07-19 05:52:44 +00:00
parent db6535dd20
commit 4aad12c9cd

View File

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