[llvm] 9a678fc - [IR] Drop unnecessary const from a return type (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 00:30:16 PDT 2023
Author: Kazu Hirata
Date: 2023-04-16T00:29:51-07:00
New Revision: 9a678fcaf603c18a6d963ce595412cacf8075d6c
URL: https://github.com/llvm/llvm-project/commit/9a678fcaf603c18a6d963ce595412cacf8075d6c
DIFF: https://github.com/llvm/llvm-project/commit/9a678fcaf603c18a6d963ce595412cacf8075d6c.diff
LOG: [IR] Drop unnecessary const from a return type (NFC)
Identified with readability-const-return-type.
Added:
Modified:
llvm/include/llvm/IR/DebugInfoMetadata.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index deabd9b0efbdf..ebf011c487dd8 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -1921,7 +1921,7 @@ class DILocation : public MDNode {
/// 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 "";
More information about the llvm-commits
mailing list