[clang] [Clang][TableGen] Use StringRef::str() instead of std::string() cast (PR #113645)

Rahul Joshi via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 27 07:55:43 PDT 2024


================
@@ -54,19 +54,18 @@ class FlattenedSpelling {
   const Record &OriginalSpelling;
 
 public:
-  FlattenedSpelling(const std::string &Variety, const std::string &Name,
+  FlattenedSpelling(const std::string &Variety, StringRef Name,
                     const std::string &Namespace, bool KnownToGCC,
----------------
jurahul wrote:

Done: https://github.com/llvm/llvm-project/pull/113809

https://github.com/llvm/llvm-project/pull/113645


More information about the cfe-commits mailing list