[cfe-commits] r120231 - /cfe/trunk/lib/Driver/ToolChains.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Nov 27 17:08:36 PST 2010


Author: rafael
Date: Sat Nov 27 19:08:36 2010
New Revision: 120231

URL: http://llvm.org/viewvc/llvm-project?rev=120231&view=rev
Log:
Add missing else.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=120231&r1=120230&r2=120231&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sat Nov 27 19:08:36 2010
@@ -1340,7 +1340,7 @@
   } else if (Arch == llvm::Triple::x86) {
     if (llvm::sys::Path("/usr/lib/gcc/i686-linux-gnu").exists())
       GccTriple = "i686-linux-gnu";
-    if (llvm::sys::Path("/usr/lib/gcc/i686-pc-linux-gnu").exists())
+    else if (llvm::sys::Path("/usr/lib/gcc/i686-pc-linux-gnu").exists())
       GccTriple = "i686-pc-linux-gnu";
     else if (llvm::sys::Path("/usr/lib/gcc/i486-linux-gnu").exists())
       GccTriple = "i486-linux-gnu";





More information about the cfe-commits mailing list