[llvm] 817c097 - [Analysis] Drop const from a return type (NFC) (#145641)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 07:58:36 PDT 2025


Author: Kazu Hirata
Date: 2025-06-25T07:58:33-07:00
New Revision: 817c097887e0388a737bcb16110db39fdf06b973

URL: https://github.com/llvm/llvm-project/commit/817c097887e0388a737bcb16110db39fdf06b973
DIFF: https://github.com/llvm/llvm-project/commit/817c097887e0388a737bcb16110db39fdf06b973.diff

LOG: [Analysis] Drop const from a return type (NFC) (#145641)

We do not need const on a return type.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/DXILResource.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/DXILResource.h b/llvm/include/llvm/Analysis/DXILResource.h
index cfc21b3ec202b..9d7847b650658 100644
--- a/llvm/include/llvm/Analysis/DXILResource.h
+++ b/llvm/include/llvm/Analysis/DXILResource.h
@@ -387,7 +387,7 @@ class ResourceInfo {
 
   const ResourceBinding &getBinding() const { return Binding; }
   TargetExtType *getHandleTy() const { return HandleTy; }
-  const StringRef getName() const { return Name; }
+  StringRef getName() const { return Name; }
 
   bool hasSymbol() const { return Symbol; }
   LLVM_ABI GlobalVariable *createSymbol(Module &M, StructType *Ty);


        


More information about the llvm-commits mailing list