diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h index c977562f0b17..5f0151363059 100644 --- a/lld/ELF/SyntheticSections.h +++ b/lld/ELF/SyntheticSections.h @@ -1324,7 +1324,7 @@ public: std::optional addr = std::nullopt) : sym(sym), acleSeSym(acleSeSym), entAddr{addr} {} static const size_t size{ACLESESYM_SIZE}; - const std::optional getAddr() const { return entAddr; }; + std::optional getAddr() const { return entAddr; }; Symbol *sym; Symbol *acleSeSym;