forked from OSchip/llvm-project
Also handle the new Rust pers fn to isCatchAll()
llvm-svn: 263585
This commit is contained in:
parent
57819fc809
commit
37ca462508
|
@ -2370,8 +2370,9 @@ Instruction *InstCombiner::visitExtractValueInst(ExtractValueInst &EV) {
|
|||
static bool isCatchAll(EHPersonality Personality, Constant *TypeInfo) {
|
||||
switch (Personality) {
|
||||
case EHPersonality::GNU_C:
|
||||
// The GCC C EH personality only exists to support cleanups, so it's not
|
||||
// clear what the semantics of catch clauses are.
|
||||
case EHPersonality::Rust:
|
||||
// The GCC C EH and Rust personality only exists to support cleanups, so
|
||||
// it's not clear what the semantics of catch clauses are.
|
||||
return false;
|
||||
case EHPersonality::Unknown:
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue