[llvm] [Analysis] Drop const from a return type (NFC) (PR #145641)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 23:01:23 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145641
We do not need const on a return type.
>From 47a9b583df268359e7ae0fb051889cf5d38d0d70 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 24 Jun 2025 21:20:18 -0700
Subject: [PATCH] [Analysis] Drop const from a return type (NFC)
We do not need const on a return type.
---
llvm/include/llvm/Analysis/DXILResource.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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