From: Martell Malone Date: Mon, 23 Nov 2015 19:05:19 +0000 (+0000) Subject: Fix alignment of r253898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db0e8c95551b70c462b5ba3413af48bec28dd116;p=clang Fix alignment of r253898 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253899 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/MinGWToolChain.cpp b/lib/Driver/MinGWToolChain.cpp index 2896bde9c9..c5287bb415 100644 --- a/lib/Driver/MinGWToolChain.cpp +++ b/lib/Driver/MinGWToolChain.cpp @@ -66,19 +66,17 @@ MinGW::MinGW(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) : ToolChain(D, Triple, Args) { getProgramPaths().push_back(getDriver().getInstalledDir()); -// On Windows if there is no sysroot we search for gcc on the PATH. - -if (getDriver().SysRoot.size()) + // On Windows if there is no sysroot we search for gcc on the PATH. + if (getDriver().SysRoot.size()) Base = getDriver().SysRoot; #ifdef LLVM_ON_WIN32 -else if (llvm::ErrorOr GPPName = - llvm::sys::findProgramByName("gcc")) - Base = llvm::sys::path::parent_path( - llvm::sys::path::parent_path(GPPName.get())); + else if (llvm::ErrorOr GPPName = + llvm::sys::findProgramByName("gcc")) + Base = llvm::sys::path::parent_path( + llvm::sys::path::parent_path(GPPName.get())); #endif - -if (!Base.size()) - Base = llvm::sys::path::parent_path(getDriver().getInstalledDir()); + if (!Base.size()) + Base = llvm::sys::path::parent_path(getDriver().getInstalledDir()); Base += llvm::sys::path::get_separator(); findGccLibDir();