[clang] f2f4080 - [PowerPC] Fix SSE translation on FreeBSD
Qiu Chaofan via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 5 09:21:29 PST 2022
Author: Piotr Kubaj
Date: 2022-02-06T01:20:31+08:00
New Revision: f2f4080c10f4319adf75c660425911cd4e0e1843
URL: https://github.com/llvm/llvm-project/commit/f2f4080c10f4319adf75c660425911cd4e0e1843
DIFF: https://github.com/llvm/llvm-project/commit/f2f4080c10f4319adf75c660425911cd4e0e1843.diff
LOG: [PowerPC] Fix SSE translation on FreeBSD
This patch drops throws specifier in posix_memalign declaration because
that's different between glibc and other libc, and Clang has a hack.
Differential Revision: https://reviews.llvm.org/D117972
Added:
Modified:
clang/lib/Headers/ppc_wrappers/mm_malloc.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/ppc_wrappers/mm_malloc.h b/clang/lib/Headers/ppc_wrappers/mm_malloc.h
index 86cf1a0f76180..b6bf22f928879 100644
--- a/clang/lib/Headers/ppc_wrappers/mm_malloc.h
+++ b/clang/lib/Headers/ppc_wrappers/mm_malloc.h
@@ -19,7 +19,7 @@
#ifndef __cplusplus
extern int posix_memalign (void **, size_t, size_t);
#else
-extern "C" int posix_memalign (void **, size_t, size_t) throw ();
+extern "C" int posix_memalign (void **, size_t, size_t);
#endif
static __inline void *
More information about the cfe-commits
mailing list