diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2025-07-07 14:28:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-07 14:28:19 +0100 |
commit | 9ebe6f9a1f9e3473166cd57282c9827df12416a3 (patch) | |
tree | f1b7113986a24b66c761c9f5623a109f221a61ee /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 16dad11f503e4eeac1b0c8909997a10a7f4e6cb4 (diff) | |
download | llvm-9ebe6f9a1f9e3473166cd57282c9827df12416a3.zip llvm-9ebe6f9a1f9e3473166cd57282c9827df12416a3.tar.gz llvm-9ebe6f9a1f9e3473166cd57282c9827df12416a3.tar.bz2 |
[lldb][test] Fix libstdc++ std::variant formatter tests for valueless variants (#147283)
A default-constructed variant has a valid index (being the first element
of the variant). The only case where the index is variant_npos is when
the variant is "valueless", which [according to
cppreference](https://en.cppreference.com/w/cpp/utility/variant/valueless_by_exception.html)
only happens when an exception is thrown during assignment to the
variant.
I adjusted the test to test that scenario, and the formatter seems to
work.
Unblocks https://github.com/llvm/llvm-project/pull/147253
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions