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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to