[libc-commits] [libc] 630283c - [libc] Fix misplaced `[[noreturn]]` attribute.

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Mar 26 14:36:11 PDT 2024


Author: Joseph Huber
Date: 2024-03-26T16:35:32-05:00
New Revision: 630283c38bce9ec188c96ddb90b8251afc2b3d8e

URL: https://github.com/llvm/llvm-project/commit/630283c38bce9ec188c96ddb90b8251afc2b3d8e
DIFF: https://github.com/llvm/llvm-project/commit/630283c38bce9ec188c96ddb90b8251afc2b3d8e.diff

LOG: [libc] Fix misplaced `[[noreturn]]` attribute.

Summary:
This needs to go after `extern "C"`.

Added: 
    

Modified: 
    libc/src/__support/OSUtil/baremetal/quick_exit.cpp

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/OSUtil/baremetal/quick_exit.cpp b/libc/src/__support/OSUtil/baremetal/quick_exit.cpp
index f0971d4db352e0..5b6fcf42341ebb 100644
--- a/libc/src/__support/OSUtil/baremetal/quick_exit.cpp
+++ b/libc/src/__support/OSUtil/baremetal/quick_exit.cpp
@@ -9,7 +9,7 @@
 #include "src/__support/OSUtil/quick_exit.h"
 
 // This is intended to be provided by the vendor.
-[[noreturn]] extern "C" void __llvm_libc_quick_exit(int status);
+extern "C" [[noreturn]] void __llvm_libc_quick_exit(int status);
 
 namespace LIBC_NAMESPACE {
 


        


More information about the libc-commits mailing list