]> granicus.if.org Git - clang/commitdiff
Fix alignment of r253898
authorMartell Malone <martellmalone@gmail.com>
Mon, 23 Nov 2015 19:05:19 +0000 (19:05 +0000)
committerMartell Malone <martellmalone@gmail.com>
Mon, 23 Nov 2015 19:05:19 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/MinGWToolChain.cpp

index 2896bde9c9ef152d307ca1a57c033acdd3449aad..c5287bb4157509e3f8b2086b71bebab304bb9efd 100644 (file)
@@ -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<std::string> GPPName =
-             llvm::sys::findProgramByName("gcc"))
-  Base = llvm::sys::path::parent_path(
-      llvm::sys::path::parent_path(GPPName.get()));
+  else if (llvm::ErrorOr<std::string> 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();