mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-03 02:08:35 +00:00
Revert r300213 "[APSInt] Add a static_assert to ensure APSInt is packed well with APInt after r300171"
MSVC doesn't pack derived classes the same way clang/gcc do. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300217 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2b7c4b1a7
commit
0f68a54cc9
@ -24,9 +24,7 @@ class LLVM_NODISCARD APSInt : public APInt {
|
||||
|
||||
public:
|
||||
/// Default constructor that creates an uninitialized APInt.
|
||||
explicit APSInt() : IsUnsigned(false) {
|
||||
static_assert(sizeof(*this) == 16, "APSInt fields poorly packed");
|
||||
}
|
||||
explicit APSInt() : IsUnsigned(false) {}
|
||||
|
||||
/// APSInt ctor - Create an APSInt with the specified width, default to
|
||||
/// unsigned.
|
||||
|
Loading…
Reference in New Issue
Block a user