Merge pull request #66336 from ClickHouse/nickitat-patch-25

Enable checks in assert_cast under sanitizers
This commit is contained in:
Nikita Taranov 2024-07-12 12:25:50 +00:00 committed by GitHub
commit 3e64271989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ namespace DB
template <typename To, typename From>
inline To assert_cast(From && from)
{
#ifndef NDEBUG
#ifdef ABORT_ON_LOGICAL_ERROR
try
{
if constexpr (std::is_pointer_v<To>)