r211984 - [Driver][Mips] Fix else-after-return.

Simon Atanasyan simon at atanasyan.com
Sat Jun 28 08:56:08 PDT 2014


Author: atanasyan
Date: Sat Jun 28 10:56:08 2014
New Revision: 211984

URL: http://llvm.org/viewvc/llvm-project?rev=211984&view=rev
Log:
[Driver][Mips] Fix else-after-return.

No functional changes.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=211984&r1=211983&r2=211984&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Jun 28 10:56:08 2014
@@ -5523,11 +5523,12 @@ public:
     if (Name == "o32" || Name == "eabi") {
       ABI = Name;
       return true;
-    } else if (Name == "32") {
+    }
+    if (Name == "32") {
       ABI = "o32";
       return true;
-    } else
-      return false;
+    }
+    return false;
   }
   void getTargetDefines(const LangOptions &Opts,
                         MacroBuilder &Builder) const override {
@@ -5661,7 +5662,8 @@ public:
       setN32ABITypes();
       ABI = Name;
       return true;
-    } else if (Name == "n64" || Name == "64") {
+    }
+    if (Name == "n64" || Name == "64") {
       setN64ABITypes();
       ABI = "n64";
       return true;





More information about the cfe-commits mailing list