[PATCH] D47988: [CodeGen] Emit MSVC funclet IR for Obj-C exceptions

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 18 16:38:37 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D47988#1135533, @rjmccall wrote:

> In general, it's unfortunate that this has to leave so many C++-runtime-specific tendrils in the ObjC code.  Unlike the EH type patch, though, I'm not sure I can see a great alternative here, especially because of the semantic restrictions required by outlining.


It's technically possible to lift those restrictions by returning an i32 from the outlined function and switching on it. Right? The question is, is it worth it? The catch funclet would effectively store the i32 to the stack frame, then "catchret" via the runtime, and then we'd switch out to the jump target.


Repository:
  rC Clang

https://reviews.llvm.org/D47988





More information about the cfe-commits mailing list