mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
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:
parent
db6535dd20
commit
4aad12c9cd
@ -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
Block a user