[libc++] Fix lifetime issues of temporaries.
authorMark de Wever <koraq@xs4all.nl>
Wed, 3 Nov 2021 19:50:59 +0000 (20:50 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 9 Nov 2021 18:01:22 +0000 (19:01 +0100)
commit1e78d5d008f95b47834ce2438a9b0faf96c85985
treedb912c78b594876b1f11a2c4ec5cb57cbb123b99
parenta948a0a23ce7ab78e31c0f6a571ac73ea766ab69
[libc++] Fix lifetime issues of temporaries.

The ASAN build failed due to using pointers to a temporary whose
lifetime had expired.

Updating the libc++ Docker image to Ubuntu Focal caused some breakage.
This was temporary disabled in D112737. This re-enables two of these
tests.

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D113137
libcxx/test/std/utilities/format/format.formatter/format.context/format.context/ctor.pass.cpp
libcxx/test/std/utilities/format/format.formatter/format.context/format.context/locale.pass.cpp