diff --git a/clang-tools-extra/clang-rename/USRLocFinder.cpp b/clang-tools-extra/clang-rename/USRLocFinder.cpp index ca4cf25268b1..9a2356b1e06c 100644 --- a/clang-tools-extra/clang-rename/USRLocFinder.cpp +++ b/clang-tools-extra/clang-rename/USRLocFinder.cpp @@ -123,9 +123,9 @@ private: } // All the locations of the USR were found. - StringRef USR; + const std::string USR; // Old name that is renamed. - StringRef PrevName; + const std::string PrevName; std::vector LocationsFound; }; } // namespace