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:
parent
810eef2574
commit
f3333428a5
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user