Skip to content

Commit

Permalink
[mips] Eliminate else-after-return. NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289331 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atanasyan committed Dec 10, 2016
1 parent 9f18372 commit 4c673fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4c673fb

Please sign in to comment.