summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-06-28 16:25:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-06-28 16:25:46 +0000
commitceb6dc8e5afbd8e4dad7aaa1948994965fd8ff2e (patch)
tree64b6cf2fe731e72eedfcf21befb887df117943e9 /lib/Frontend/CompilerInvocation.cpp
parent15a0de95f5b364cfb96bacc644f491215bd92098 (diff)
downloadclang-ceb6dc8e5afbd8e4dad7aaa1948994965fd8ff2e.tar.gz
clang-ceb6dc8e5afbd8e4dad7aaa1948994965fd8ff2e.tar.bz2
clang-ceb6dc8e5afbd8e4dad7aaa1948994965fd8ff2e.tar.xz
Use the multiple argument form of path::append.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index f362226459..d8b4392278 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -852,9 +852,7 @@ std::string CompilerInvocation::GetResourcesPath(const char *Argv0,
llvm::sys::path::remove_filename(P); // Remove /bin from foo/bin
// Get foo/lib/clang/<version>/include
- llvm::sys::path::append(P, "lib");
- llvm::sys::path::append(P, "clang");
- llvm::sys::path::append(P, CLANG_VERSION_STRING);
+ llvm::sys::path::append(P, "lib", "clang", CLANG_VERSION_STRING);
}
return P.str();