Investors & landlords

I realize that you cannot take Passive loss carryover from rental loss on a 1031 exchange, my question is, do the carryover loss go against future rental income or does it get added to the adjusted basis of the old property to decrease the gain on sale of the new property?