diff options
author | Alexander Kornienko <alexfh@google.com> | 2024-07-26 14:24:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 14:24:56 +0200 |
commit | 8322a3085c902de9759a40ccdcd194a4c46e7185 (patch) | |
tree | 296631f9cd274ca7574617bdbe72d3700986a2e8 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | bfa0cae31c1db7627c41dcebd660f5eaea796778 (diff) | |
download | llvm-8322a3085c902de9759a40ccdcd194a4c46e7185.zip llvm-8322a3085c902de9759a40ccdcd194a4c46e7185.tar.gz llvm-8322a3085c902de9759a40ccdcd194a4c46e7185.tar.bz2 |
Avoid accessing unset optional, workaround for #100095 (#100408)
This patch avoids accessing an unset `std::optional<>`, which is a part
of the manifestation of #100095. The other part is an assertion failure
that is not addressed here. This is not a proper fix, but enables Clang
to continue working with more libc++ runtime checks enabled
(specifically, `-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST`,
which checks access to unset optionals among other things). A proper fix
is being discussed on #100095.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions