[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

via cfe-commits cfe-commits at lists.llvm.org
Sun May 25 09:41:36 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/Function.h (+1-1) 


``````````diff
diff --git a/clang/lib/AST/ByteCode/Function.h b/clang/lib/AST/ByteCode/Function.h
index 45a1c1bf9f839..8b577858474af 100644
--- a/clang/lib/AST/ByteCode/Function.h
+++ b/clang/lib/AST/ByteCode/Function.h
@@ -115,7 +115,7 @@ class Function final {
 
   /// Returns the name of the function decl this code
   /// was generated for.
-  const std::string getName() const {
+  std::string getName() const {
     if (!Source || !getDecl())
       return "<<expr>>";
 

``````````

</details>


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


More information about the cfe-commits mailing list