Skip to content

Commit 6952f51

Browse files
committed
Update EBO statich_assert.
1 parent e0d2620 commit 6952f51

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

llvm/include/llvm/ADT/APFloat.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,12 +1477,6 @@ class APFloat : public APFloatBase {
14771477
friend class APFloatEBOChecker;
14781478
};
14791479

1480-
class APFloatEBOChecker {
1481-
static_assert(sizeof(APFloat) == sizeof(APFloat::U),
1482-
"Empty base class optimization is not performed.");
1483-
};
1484-
1485-
14861480
/// See friend declarations above.
14871481
///
14881482
/// These additional declarations are required in order to compile LLVM with IBM

llvm/lib/Support/APFloat.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ enum class fltNanEncoding {
9999
NegativeZero,
100100
};
101101

102+
class APFloatEBOChecker {
103+
static_assert(sizeof(APFloat) == sizeof(APFloat::U),
104+
"Empty base class optimization is not performed.");
105+
};
106+
102107
/* Represents floating point arithmetic semantics. */
103108
struct fltSemantics {
104109
/* The largest E such that 2^E is representable; this matches the

0 commit comments

Comments
 (0)