forked from OSchip/llvm-project
Fix missing __muloti4 function with UBSAN
llvm-svn: 369483
This commit is contained in:
parent
a6edef3563
commit
5b59295011
|
@ -18,7 +18,7 @@
|
|||
|
||||
#if !defined(_LIBCPP_HAS_NO_INT128)
|
||||
|
||||
extern "C" __attribute__((no_sanitize("undefined")))
|
||||
extern "C" __attribute__((no_sanitize("undefined"))) _LIBCPP_FUNC_VIS
|
||||
__int128_t __muloti4(__int128_t a, __int128_t b, int* overflow) {
|
||||
const int N = (int)(sizeof(__int128_t) * CHAR_BIT);
|
||||
const __int128_t MIN = (__int128_t)1 << (N - 1);
|
||||
|
|
Loading…
Reference in New Issue