Skip to content

Commit a6929db

Browse files
authored
[lld] Remove const qualifier on symbolKind (NFC) (#94753)
The symbol including this member is being overwritten by memcpy here: https://github.com/llvm/llvm-project/blob/2117677e304d334326f6591f3c75fb2f34dc4bcb/lld/COFF/SymbolTable.cpp#L496-L509
1 parent a47e40b commit a6929db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/COFF/Symbols.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Symbol {
106106
"If the name is empty, the Symbol must be a DefinedCOFF.");
107107
}
108108

109-
const unsigned symbolKind : 8;
109+
unsigned symbolKind : 8;
110110
unsigned isExternal : 1;
111111

112112
public:

0 commit comments

Comments
 (0)