Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 20, 2025

@llvm/pr-subscribers-lld

@llvm/pr-subscribers-lld-elf

Author: Kazu Hirata (kazutakahirata)

Changes

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

1 Files Affected:

  • (modified) lld/ELF/SyntheticSections.h (+1-1)
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;

@kazutakahirata kazutakahirata merged commit 575f66c into llvm:main May 20, 2025
14 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_drop_const_lld branch May 20, 2025 04:37
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants