OSDN Git Service

[PruneEH] FuncletPads must not have undef operands
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 23 Jan 2016 05:41:29 +0000 (05:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 23 Jan 2016 05:41:29 +0000 (05:41 +0000)
commit21b6d45ea5f2f197ae03442dd905bf0607487b33
tree8fa96e8d0772dad5f528de983b967433b647ddde
parentee28a1875c14ed0dacb1da6a13c9d624ec4228f0
[PruneEH] FuncletPads must not have undef operands

Instead of RAUW with undef, replace the first non-token instruction with
unreachable.

This fixes PR26263.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PruneEH.cpp
test/Transforms/PruneEH/pr26263.ll [new file with mode: 0644]