From: Anton Korobeynikov Date: Sat, 19 Jul 2008 05:52:44 +0000 (+0000) Subject: Remove bogus assertion. This unbreaks mingw, where ConstantSDNode X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=4aad12c9cdc4ad3183f70797b3dce420e830f901 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 --- diff --git a/include/llvm/ADT/alist_node.h b/include/llvm/ADT/alist_node.h index c7ab8472dd7..fcdf22c45c1 100644 --- a/include/llvm/ADT/alist_node.h +++ b/include/llvm/ADT/alist_node.h @@ -47,16 +47,12 @@ public: template SubClass *getElement(SubClass *) { assert(sizeof(SubClass) <= sizeof(LargestT)); - assert(unsigned(AlignOf::Alignment) <= - unsigned(AlignOf::Alignment)); return reinterpret_cast(&Storage.Bytes); } template const SubClass *getElement(SubClass *) const { assert(sizeof(SubClass) <= sizeof(LargestT)); - assert(unsigned(AlignOf::Alignment) <= - unsigned(AlignOf::Alignment)); return reinterpret_cast(&Storage.Bytes); }