diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-11 17:35:38 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-10-11 17:35:38 +0000 |
commit | d13e190deab4e4ae5cb18421f14d904e980aee9e (patch) | |
tree | e5d72759010f846d65ebfb41e425c8864e4b065a /lib | |
parent | 85a0d7111560dde86ef2885ea214d5438eb6ee92 (diff) |
builtins: use NORETURN macro
Now that we have the NORETURN macro, use that to mark the function as noreturn,
rather than the GNU __attribute__.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/builtins/int_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/builtins/int_util.c b/lib/builtins/int_util.c index 4c8d4af70..420d1e237 100644 --- a/lib/builtins/int_util.c +++ b/lib/builtins/int_util.c @@ -23,7 +23,7 @@ #ifdef KERNEL_USE -extern void panic(const char *, ...) __attribute__((noreturn)); +NORETURN extern void panic(const char *, ...); #ifndef _WIN32 __attribute__((visibility("hidden"))) #endif @@ -34,8 +34,8 @@ void compilerrt_abort_impl(const char *file, int line, const char *function) { #elif __APPLE__ /* from libSystem.dylib */ -extern void __assert_rtn(const char *func, const char *file, - int line, const char * message) __attribute__((noreturn)); +NORETURN extern void __assert_rtn(const char *func, const char *file, int line, + const char *message); #ifndef _WIN32 __attribute__((weak)) |