Fold a llvm_unreachable into an assert. NFC.

llvm-svn: 232811
This commit is contained in:
Rafael Espindola 2015-03-20 13:50:15 +00:00
parent 5f5e24bb92
commit 9e77cba164
1 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,8 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
break;
}
}
} else if (getEMachine() == ELF::EM_386) {
} else {
assert(getEMachine() == ELF::EM_386 && "Unsupported ELF machine type.");
if (IsPCRel) {
switch ((unsigned)Fixup.getKind()) {
default:
@ -286,8 +287,7 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
break;
}
}
} else
llvm_unreachable("Unsupported ELF machine type.");
}
return Type;
}