Add the sentinal "no handle" value to the ResumeInst.
authorBill Wendling <isanbard@gmail.com>
Wed, 24 Aug 2011 00:00:23 +0000 (00:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 24 Aug 2011 00:00:23 +0000 (00:00 +0000)
commit3ae96d69ef0695460eb3d046427d22dcda10d9f0
tree2bd2b2f60e450dfb3e0b4b020aea4f1776263430
parentfc8713ff74c2ed83d453057b24c578a0709fc180
Add the sentinal "no handle" value to the ResumeInst.

A value of -1 at a call site tells the personality function that this call isn't
handled by the current function. Since the ResumeInsts are converted to calls to
_Unwind_SjLj_Resume, add a (volatile) store of -1 to its 'call site'.

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