Fix an LLVM crash when a method ending with a throw is inlined into a catch clause. Fixes #11297.