When we create an invoke wrapper call, if the original call instruction has a `noreturn` attribute, we shouldn't copy it, because we expect invoke wrapper calls to return. This generated incorrect `free` call before an invoke wrapper call that calls `__cxa_throw`, because `__cxa_throw` has `noreturn` attribute. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D118274
11 KiB
11 KiB