1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Add llvm_unreachable after fully-covered switches to appease GCC

llvm-svn: 204318
This commit is contained in:
Alexey Samsonov 2014-03-20 07:30:40 +00:00
parent 810eef2574
commit f3333428a5
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ static MCSymbolRefExpr::VariantKind getAccessVariant(const MCExpr *Expr) {
return getAccessVariant(ABE->getLHS());
}
}
llvm_unreachable("unknown MCExpr kind");
}
MCSymbolRefExpr::VariantKind MCFixup::getAccessVariant() const {

View File

@ -74,6 +74,7 @@ static MCSymbolRefExpr::VariantKind getAccessVariant(const MCFixup &Fixup) {
case PPCMCExpr::VK_PPC_HIGHESTA:
return MCSymbolRefExpr::VK_PPC_HIGHESTA;
}
llvm_unreachable("unknown PPCMCExpr kind");
}
unsigned PPCELFObjectWriter::getRelocTypeInner(const MCValue &Target,