llvm.org GIT mirror llvm / 0f68a54
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 Craig Topper 3 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2323
2424 public:
2525 /// Default constructor that creates an uninitialized APInt.
26 explicit APSInt() : IsUnsigned(false) {
27 static_assert(sizeof(*this) == 16, "APSInt fields poorly packed");
28 }
26 explicit APSInt() : IsUnsigned(false) {}
2927
3028 /// APSInt ctor - Create an APSInt with the specified width, default to
3129 /// unsigned.