]> granicus.if.org Git - clang/commitdiff
Basic: Update getClangRepositoryPath for my change to integration branch layout.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 6 May 2010 18:39:38 +0000 (18:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 6 May 2010 18:39:38 +0000 (18:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103192 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Version.cpp

index 6d9bee8ceedcfb7e67c2f02b8769c296723a9559..036ee00545fca148602ba0420eeb6ff156fc5019 100644 (file)
@@ -28,7 +28,8 @@ llvm::StringRef getClangRepositoryPath() {
   if (End)
     URLEnd = End;
 
-  End = strstr(URL, "/clang/tools/clang");
+  // Strip off version from a build from an integration branch.
+  End = strstr(URL, "/src/tools/clang");
   if (End)
     URLEnd = End;