From: Simon Atanasyan Date: Sat, 10 Dec 2016 17:30:09 +0000 (+0000) Subject: [mips] Eliminate else-after-return. NFC X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edd7a7bb40a64b2dc58b3e9fd92259acd20f62d1;p=platform%2Fupstream%2Fllvm.git [mips] Eliminate else-after-return. NFC llvm-svn: 289331 --- diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp index 3cf632e..498ea6f 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp @@ -51,12 +51,11 @@ MipsABIInfo MipsABIInfo::computeTargetABI(const Triple &TT, StringRef CPU, const MCTargetOptions &Options) { if (Options.getABIName().startswith("o32")) return MipsABIInfo::O32(); - else if (Options.getABIName().startswith("n32")) + if (Options.getABIName().startswith("n32")) return MipsABIInfo::N32(); - else if (Options.getABIName().startswith("n64")) + if (Options.getABIName().startswith("n64")) return MipsABIInfo::N64(); - else if (!Options.getABIName().empty()) - llvm_unreachable("Unknown ABI option for MIPS"); + assert(Options.getABIName().empty() && "Unknown ABI option for MIPS"); if (TT.getArch() == Triple::mips64 || TT.getArch() == Triple::mips64el) return MipsABIInfo::N64();