[lld] [lld] Drop const from a return type (NFC) (PR #140667)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 20:24:28 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140667
None
>From 759c2ca0d55aa2825a2d49b7a7bef15cbb501641 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 19 May 2025 20:20:03 -0700
Subject: [PATCH] [lld] Drop const from a return type (NFC)
---
lld/ELF/SyntheticSections.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the llvm-commits
mailing list