Simplify the handling of .cfi_endproc.

No functionality change.