[compiler-rt] r330765 - Remove 'noexcept's that do not match between header and source file.

Richard Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 24 13:33:37 PDT 2018


Author: rsmith
Date: Tue Apr 24 13:33:37 2018
New Revision: 330765

URL: http://llvm.org/viewvc/llvm-project?rev=330765&view=rev
Log:
Remove 'noexcept's that do not match between header and source file.

This code is ill-formed, but under -fno-exceptions compilers generally accept it (at least, prior to C++17). This allows this code to be built by Clang in C++17 mode.

Modified:
    compiler-rt/trunk/lib/xray/xray_interface.cc

Modified: compiler-rt/trunk/lib/xray/xray_interface.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_interface.cc?rev=330765&r1=330764&r2=330765&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_interface.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_interface.cc Tue Apr 24 13:33:37 2018
@@ -362,7 +362,7 @@ int __xray_set_customevent_handler(void
 }
 
 int __xray_set_typedevent_handler(void (*entry)(
-    uint16_t, const void *, size_t)) noexcept XRAY_NEVER_INSTRUMENT {
+    uint16_t, const void *, size_t)) XRAY_NEVER_INSTRUMENT {
   if (__sanitizer::atomic_load(&XRayInitialized,
                                __sanitizer::memory_order_acquire)) {
     __sanitizer::atomic_store(&__xray::XRayPatchedTypedEvent,
@@ -381,12 +381,12 @@ int __xray_remove_customevent_handler()
   return __xray_set_customevent_handler(nullptr);
 }
 
-int __xray_remove_typedevent_handler() noexcept XRAY_NEVER_INSTRUMENT {
+int __xray_remove_typedevent_handler() XRAY_NEVER_INSTRUMENT {
   return __xray_set_typedevent_handler(nullptr);
 }
 
 uint16_t __xray_register_event_type(
-    const char *const event_type) noexcept XRAY_NEVER_INSTRUMENT {
+    const char *const event_type) XRAY_NEVER_INSTRUMENT {
   TypeDescriptorMapType::Handle h(&TypeDescriptorAddressMap, (uptr)event_type);
   if (h.created()) {
     h->type_id = __sanitizer::atomic_fetch_add(




More information about the llvm-commits mailing list