r188088 - Remove "static" on simple temporary StringRef.

Benjamin Kramer benny.kra at googlemail.com
Fri Aug 9 10:51:04 PDT 2013


Author: d0k
Date: Fri Aug  9 12:51:03 2013
New Revision: 188088

URL: http://llvm.org/viewvc/llvm-project?rev=188088&view=rev
Log:
Remove "static" on simple temporary StringRef.

Modified:
    cfe/trunk/lib/Basic/Version.cpp

Modified: cfe/trunk/lib/Basic/Version.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Version.cpp?rev=188088&r1=188087&r2=188088&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Version.cpp (original)
+++ cfe/trunk/lib/Basic/Version.cpp Fri Aug  9 12:51:03 2013
@@ -36,7 +36,7 @@ std::string getClangRepositoryPath() {
 
   // If the SVN_REPOSITORY is empty, try to use the SVN keyword. This helps us
   // pick up a tag in an SVN export, for example.
-  static StringRef SVNRepository("$URL$");
+  StringRef SVNRepository("$URL$");
   if (URL.empty()) {
     URL = SVNRepository.slice(SVNRepository.find(':'),
                               SVNRepository.find("/lib/Basic"));





More information about the cfe-commits mailing list