bug 3367

Please can you consider fixing bug 3367 in the trunk and 2.5 branch?
It's an assertion failure in an optimization pass that I hit when
compiling a real C++ application.

It's caused by -inline not updating the call graph when it replaces a
call with an invoke. There's a very small test case attached to the
bug, as well as a pretty obvious fix.

http://llvm.org/bugs/show_bug.cgi?id=3367

Thanks!
Jay.

Jay Foad wrote:

Please can you consider fixing bug 3367 in the trunk and 2.5 branch?
It's an assertion failure in an optimization pass that I hit when
compiling a real C++ application.

It's caused by -inline not updating the call graph when it replaces a
call with an invoke. There's a very small test case attached to the
bug, as well as a pretty obvious fix.

I agree, that's an obvious fix. I've applied it in r63600. Thanks for the patch and testcase!

Nick