mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #66336 from ClickHouse/nickitat-patch-25
Enable checks in assert_cast under sanitizers
This commit is contained in:
commit
3e64271989
@ -25,7 +25,7 @@ namespace DB
|
|||||||
template <typename To, typename From>
|
template <typename To, typename From>
|
||||||
inline To assert_cast(From && from)
|
inline To assert_cast(From && from)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifdef ABORT_ON_LOGICAL_ERROR
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if constexpr (std::is_pointer_v<To>)
|
if constexpr (std::is_pointer_v<To>)
|
||||||
|
Loading…
Reference in New Issue
Block a user