What’s The Link Between Coral Die-Off & Global Warming?

I’ve heard about the die-off of coral reefs due to global warming. I’ve also read that coral reefs themselves store carbon dioxide (CO2), one of the main global warming gases. So if coral reefs are dying out, isn’t that a double whammy that increases the CO2 in the atmosphere?