From edd7a7bb40a64b2dc58b3e9fd92259acd20f62d1 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Sat, 10 Dec 2016 17:30:09 +0000 Subject: [PATCH] [mips] Eliminate else-after-return. NFC llvm-svn: 289331 --- llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp index 3cf632e789de..498ea6fda4b3 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();