[lld] a6929db - [lld] Remove const qualifier on symbolKind (NFC) (#94753)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 00:01:41 PDT 2024


Author: Nikita Popov
Date: 2024-06-10T09:01:37+02:00
New Revision: a6929dbea8b4525ee41c1269e8e4a2b7182d9ce2

URL: https://github.com/llvm/llvm-project/commit/a6929dbea8b4525ee41c1269e8e4a2b7182d9ce2
DIFF: https://github.com/llvm/llvm-project/commit/a6929dbea8b4525ee41c1269e8e4a2b7182d9ce2.diff

LOG: [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

Added: 
    

Modified: 
    lld/COFF/Symbols.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h
index ca69fb2d05270..5ef46f5af6a6c 100644
--- a/lld/COFF/Symbols.h
+++ b/lld/COFF/Symbols.h
@@ -106,7 +106,7 @@ class Symbol {
            "If the name is empty, the Symbol must be a DefinedCOFF.");
   }
 
-  const unsigned symbolKind : 8;
+  unsigned symbolKind : 8;
   unsigned isExternal : 1;
 
 public:


        


More information about the llvm-commits mailing list