diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-23 11:30:23 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-23 11:30:23 -0700 |
commit | 85dadf6d8d5adcca3539ad33442d28710f166e42 (patch) | |
tree | 8a1100d8c1a585d85b7d4c2bb357badcc2dae829 /llvm/include | |
parent | 71cdb8c6f144b8f78fed1f39dc6b9c153f9023c1 (diff) | |
download | llvm-85dadf6d8d5adcca3539ad33442d28710f166e42.zip llvm-85dadf6d8d5adcca3539ad33442d28710f166e42.tar.gz llvm-85dadf6d8d5adcca3539ad33442d28710f166e42.tar.bz2 |
[TableGen] Drop an unnecessary const from a return type (NFC)
This patch also drops "&" that binds to a temporary.
Identified with readability-const-return-type.
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/TableGen/Record.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index bfcf44d..50df38e 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -1615,7 +1615,7 @@ public: return Name; } - const std::string getNameInitAsString() const { + std::string getNameInitAsString() const { return getNameInit()->getAsUnquotedString(); } |