diff --git a/clang/lib/Analysis/ExprMutationAnalyzer.cpp b/clang/lib/Analysis/ExprMutationAnalyzer.cpp index 5e305534c812ed..e57a425f802dff 100644 --- a/clang/lib/Analysis/ExprMutationAnalyzer.cpp +++ b/clang/lib/Analysis/ExprMutationAnalyzer.cpp @@ -73,10 +73,8 @@ const auto isMoveOnly = [] { }; template struct NodeID; -template <> struct NodeID { static const std::string value; }; -template <> struct NodeID { static const std::string value; }; -const std::string NodeID::value = "expr"; -const std::string NodeID::value = "decl"; +template <> struct NodeID { static constexpr StringRef value = "expr"; }; +template <> struct NodeID { static constexpr StringRef value = "decl"; }; template const Stmt *tryEachMatch(ArrayRef Matches,