Fixed an issue with code insertion order when dealing with a combo
of phi and landing_pad instructions in the IR.