]> granicus.if.org Git - clang/commitdiff
[Driver][Mips] Fix else-after-return.
authorSimon Atanasyan <simon@atanasyan.com>
Sat, 28 Jun 2014 15:56:08 +0000 (15:56 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sat, 28 Jun 2014 15:56:08 +0000 (15:56 +0000)
No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211984 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 352deb0ab74a2fed676a798ed87b6f3c682bc891..ebeee445d463f1d0da071fafd2c508b3d49ba822 100644 (file)
@@ -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;