[all-commits] [llvm/llvm-project] 8322a3: Avoid accessing unset optional, workaround for #10...
Alexander Kornienko via All-commits
all-commits at lists.llvm.org
Fri Jul 26 05:25:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8322a3085c902de9759a40ccdcd194a4c46e7185
https://github.com/llvm/llvm-project/commit/8322a3085c902de9759a40ccdcd194a4c46e7185
Author: Alexander Kornienko <alexfh at google.com>
Date: 2024-07-26 (Fri, 26 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaTemplateDeduction.cpp
A clang/test/SemaCXX/pr100095.cpp
Log Message:
-----------
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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list