[llvm-commits] llvm-gcc: always create a call to eh.selector, even if there are no type infos

Duncan Sands baldrick at free.fr
Tue Jul 10 07:17:21 PDT 2007


A function that only has cleanups (destructors) to run when an exception is raised
currently is not assigned a personality function because we don't bother creating
a call to eh.selector if there are no catches.  But the personality function is
still needed, since it is the personality function that analyses the exception table
and decides where to jump to (to the cleanups in this case).  This patch causes a
call to eh.selector to be generated in every landing pad, even if it has no type infos,
because that specifies the personality function.

Ciao,

Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup_personality.diff
Type: text/x-diff
Size: 1887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070710/58246777/attachment.diff>


More information about the llvm-commits mailing list