commit | 1fbf1f0052d6758774e565039ba69780295eb8dd | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Nov 05 23:46:05 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Nov 05 23:46:05 2009 +0000 |
tree | 35c428b0ffe6d6a7b7fbe009ccfcf1cd66f75ab4 | |
parent | 40d1bb6383c14d5f8249d0640e8088a91b694c66 [diff] [blame] |
Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86195 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp index 9699ee4..18a8a88 100644 --- a/lib/Basic/Version.cpp +++ b/lib/Basic/Version.cpp
@@ -26,6 +26,10 @@ if (End) *End = 0; + End = strstr(URL, "/clang/tools/clang"); + if (End) + *End = 0; + char *Begin = strstr(URL, "cfe/"); if (Begin) { Path = Begin + 4;