forked from OSchip/llvm-project
Add llvm_unreachable after fully-covered switches to appease GCC
llvm-svn: 204318
This commit is contained in:
parent
6d500da3cc
commit
94bc422d7a
|
@ -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