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:
Anton Korobeynikov 2008-07-19 05:52:44 +00:00
parent 44831bcb8c
commit fa8511bf08
1 changed files with 0 additions and 4 deletions

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