Add a missing debug assertion in <list>.

This came up in D100595.

Differential Revision: https://reviews.llvm.org/D100728

GitOrigin-RevId: 5e7367d3e44424c058cc8d891dac0a0088586329
1 file changed