Эх сурвалжийг харах

Fix missing __muloti4 function with UBSAN

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@369483 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 6 жил өмнө
parent
commit
2d8b51bed3

+ 1 - 1
src/filesystem/int128_builtins.cpp

@@ -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);