소스 검색

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 년 전
부모
커밋
2d8b51bed3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/filesystem/int128_builtins.cpp

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