Merge pull request #19566 from ClickHouse/tavplubix-patch-3

DateLUTImpl::addYears(...): suppress UBSan
This commit is contained in:
tavplubix 2021-01-26 11:23:41 +03:00 committed by GitHub
commit 3db7f48aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -863,7 +863,7 @@ public:
return lut[result_day].date + time_offset;
}
inline DayNum addYears(DayNum d, Int64 delta) const
inline NO_SANITIZE_UNDEFINED DayNum addYears(DayNum d, Int64 delta) const
{
const Values & values = lut[d];