From ceb6dc8e5afbd8e4dad7aaa1948994965fd8ff2e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 28 Jun 2013 16:25:46 +0000 Subject: 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 --- lib/Frontend/CompilerInvocation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') 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//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(); -- cgit v1.2.3