OSDN Git Service

There are some situations which can cause the URoR hack to infinitely recurse
authorBill Wendling <isanbard@gmail.com>
Tue, 15 Mar 2011 01:03:17 +0000 (01:03 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 15 Mar 2011 01:03:17 +0000 (01:03 +0000)
commit28cc1aa3a748068b6490a19fc4af2443bc7f3dbd
treedea9ef8fdb28c3637e6cd77eecbc884a7f4feb48
parentc343c1e27eb1a8901aebbe732a2813150ff46a71
There are some situations which can cause the URoR hack to infinitely recurse
and then go kablooie. The problem was that it was tracking the PHI nodes anew
each time into this function. But it didn't need to. And because the recursion
didn't know that a PHINode was visited before, it would go ahead and call
itself.

There is a testcase, but unfortunately it's too big to add. This problem will go
away with the EH rewrite.
<rdar://problem/8856298>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/DwarfEHPrepare.cpp