[Openmp-commits] [PATCH] D21304: Bug fix for 26602: Remove function bodies with KMP_ASSERT(0)

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 13 14:40:12 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL272590: Bug fix for Bugzilla bug 26602: Remove function bodies with KMP_ASSERT(0) (authored by jlpeyton).

Changed prior to commit:
  http://reviews.llvm.org/D21304?vs=60588&id=60614#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21304

Files:
  openmp/trunk/runtime/src/kmp_dispatch.cpp

Index: openmp/trunk/runtime/src/kmp_dispatch.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_dispatch.cpp
+++ openmp/trunk/runtime/src/kmp_dispatch.cpp
@@ -190,7 +190,7 @@
 // test_then_add template (general template should NOT be used)
 template< typename T >
 static __forceinline T
-test_then_add( volatile T *p, T d ) { KMP_ASSERT(0); };
+test_then_add( volatile T *p, T d );
 
 template<>
 __forceinline kmp_int32
@@ -213,7 +213,7 @@
 // test_then_inc_acq template (general template should NOT be used)
 template< typename T >
 static __forceinline T
-test_then_inc_acq( volatile T *p ) { KMP_ASSERT(0); };
+test_then_inc_acq( volatile T *p );
 
 template<>
 __forceinline kmp_int32
@@ -236,7 +236,7 @@
 // test_then_inc template (general template should NOT be used)
 template< typename T >
 static __forceinline T
-test_then_inc( volatile T *p ) { KMP_ASSERT(0); };
+test_then_inc( volatile T *p );
 
 template<>
 __forceinline kmp_int32
@@ -259,7 +259,7 @@
 // compare_and_swap template (general template should NOT be used)
 template< typename T >
 static __forceinline kmp_int32
-compare_and_swap( volatile T *p, T c, T s ) { KMP_ASSERT(0); };
+compare_and_swap( volatile T *p, T c, T s );
 
 template<>
 __forceinline kmp_int32


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21304.60614.patch
Type: text/x-patch
Size: 1296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160613/97921231/attachment.bin>


More information about the Openmp-commits mailing list