ir: Add type for return instruction.