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

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


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

None

>From 9300bcb2f81f3bce140fca25b2f96544acec9e79 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 24 May 2025 20:41:08 -0700
Subject: [PATCH] [ByteCode] Drop const from a return type (NFC)

---
 clang/lib/AST/ByteCode/Function.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>>";
 



More information about the cfe-commits mailing list