ir: Assign location to unarys when automatically building them.