Fix LTO handling of module-level assembly (PR14152).

Patch by Tom Roeder!