summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorBjorn Steinbrink <bsteinbr@gmail.com>2016-03-15 20:57:07 +0000
committerBjorn Steinbrink <bsteinbr@gmail.com>2016-03-15 20:57:07 +0000
commit37ca462508511da5b70459dc117340c5fd9e1831 (patch)
tree583d8468f32f5e4aa847d8e3e5d28c087eb21de5 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent57819fc809d1a72e253233930bbd06f13fb9bae6 (diff)
downloadbcm5719-llvm-37ca462508511da5b70459dc117340c5fd9e1831.tar.gz
bcm5719-llvm-37ca462508511da5b70459dc117340c5fd9e1831.zip
Also handle the new Rust pers fn to isCatchAll()
llvm-svn: 263585
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 0ac16fe1c77..8f7fd2e1bb6 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -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;
OpenPOWER on IntegriCloud