Is using a car cover in hot sun bad?

My black Benz is usually covered when not in the garage, especially to avoid oxidation in hot summer months. Someone recently told me I shouldn’t use a car cover in the sun. So far I haven’t experienced any problems. Am I setting myself up for an issue later? Thanks.