[IR] Drop unnecessary const from a return type (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 07:29:51 +0000 (00:29 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 07:29:51 +0000 (00:29 -0700)
Identified with readability-const-return-type.

llvm/include/llvm/IR/DebugInfoMetadata.h

index deabd9b..ebf011c 100644 (file)
@@ -1921,7 +1921,7 @@ public:
 
   /// Return the linkage name of Subprogram. If the linkage name is empty,
   /// return scope name (the demangled name).
-  const StringRef getSubprogramLinkageName() const {
+  StringRef getSubprogramLinkageName() const {
     DISubprogram *SP = getScope()->getSubprogram();
     if (!SP)
       return "";