folly: ubsan: disable integer overflow tests in Histogram
authorLucian Grijincu <lucian@fb.com>
Tue, 10 May 2016 06:00:19 +0000 (23:00 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Tue, 10 May 2016 06:05:19 +0000 (23:05 -0700)
commit9dd251b3a1ced6c9745a2e54b847fd33dd458f42
tree9f01dece07f796883ccd96dacf5d36b9e0ce1b47
parent6c4dfb8a63e86a819e08d1122e9dc0843ace0879
folly: ubsan: disable integer overflow tests in Histogram

Summary:
It would be nice to fix, but it's going to be easier to do when folly
support is for GCC>=5 which adds `__builtin_add_overflow`.

For now disable the check as the Histgram code handles overflow
correctly and has tests for these cases.

Fixes need to be done for both float and integer types as Histogram is used with both.

Reviewed By: meyering

Differential Revision: D3280260

fbshipit-source-id: 56e524c517566a4547346859be7770eda2acee96
folly/stats/Histogram.h