From 9a678fcaf603c18a6d963ce595412cacf8075d6c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 16 Apr 2023 00:29:51 -0700 Subject: [PATCH] [IR] Drop unnecessary const from a return type (NFC) Identified with readability-const-return-type. --- llvm/include/llvm/IR/DebugInfoMetadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h index deabd9b..ebf011c 100644 --- a/llvm/include/llvm/IR/DebugInfoMetadata.h +++ b/llvm/include/llvm/IR/DebugInfoMetadata.h @@ -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 ""; -- 2.7.4