[lld] [lld] Drop const from a return type (NFC) (PR #140667)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 20:25:02 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld-elf

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/140667.diff


1 Files Affected:

- (modified) lld/ELF/SyntheticSections.h (+1-1) 


``````````diff
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h
index c977562f0b174..5f01513630597 100644
--- a/lld/ELF/SyntheticSections.h
+++ b/lld/ELF/SyntheticSections.h
@@ -1324,7 +1324,7 @@ class ArmCmseSGVeneer {
                   std::optional<uint64_t> addr = std::nullopt)
       : sym(sym), acleSeSym(acleSeSym), entAddr{addr} {}
   static const size_t size{ACLESESYM_SIZE};
-  const std::optional<uint64_t> getAddr() const { return entAddr; };
+  std::optional<uint64_t> getAddr() const { return entAddr; };
 
   Symbol *sym;
   Symbol *acleSeSym;

``````````

</details>


https://github.com/llvm/llvm-project/pull/140667


More information about the llvm-commits mailing list