Skip to content

Commit ae31f9f

Browse files
committed
[lld-macho] Change bitfield types to be identical.
Symbol's subclasses all have an additional bitfield of type uint8_t (RefState enum). For the bitfields in the same block tomerge, they should be of the same type. (clang/gcc will work, but others like MSVC does not) Differential Revision: https://reviews.llvm.org/D113040
1 parent 51e9f33 commit ae31f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/MachO/Symbols.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ class Symbol {
103103

104104
public:
105105
// True if this symbol was referenced by a regular (non-bitcode) object.
106-
bool isUsedInRegularObj : 1;
106+
uint8_t isUsedInRegularObj : 1;
107107

108108
// True if an undefined or dylib symbol is used from a live section.
109-
bool used : 1;
109+
uint8_t used : 1;
110110
};
111111

112112
class Defined : public Symbol {

0 commit comments

Comments
 (0)