From 4aad12c9cdc4ad3183f70797b3dce420e830f901 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 19 Jul 2008 05:52:44 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/alist_node.h | 4 ---- 1 file changed, 4 deletions(-) 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); } -- 2.34.1