[clang] 403c722 - [ByteCode] Drop const from a return type (NFC) (#141415)

via cfe-commits cfe-commits at lists.llvm.org
Sun May 25 13:28:53 PDT 2025


Author: Kazu Hirata
Date: 2025-05-25T13:28:50-07:00
New Revision: 403c72265766c1c3e7bc93f8d358088f184f2689

URL: https://github.com/llvm/llvm-project/commit/403c72265766c1c3e7bc93f8d358088f184f2689
DIFF: https://github.com/llvm/llvm-project/commit/403c72265766c1c3e7bc93f8d358088f184f2689.diff

LOG: [ByteCode] Drop const from a return type (NFC) (#141415)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Function.h

Removed: 
    


################################################################################
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