We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c95ef commit e0d2620Copy full SHA for e0d2620
llvm/include/llvm/ADT/APFloat.h
@@ -1474,10 +1474,14 @@ class APFloat : public APFloatBase {
1474
friend APFloat frexp(const APFloat &X, int &Exp, roundingMode RM);
1475
friend IEEEFloat;
1476
friend DoubleAPFloat;
1477
+ friend class APFloatEBOChecker;
1478
+};
1479
+
1480
+class APFloatEBOChecker {
1481
+ static_assert(sizeof(APFloat) == sizeof(APFloat::U),
1482
+ "Empty base class optimization is not performed.");
1483
};
1484
-static_assert(sizeof(APFloat) == sizeof(detail::IEEEFloat),
- "Empty base class optimization is not performed.");
1485
1486
/// See friend declarations above.
1487
///
0 commit comments