r333855 - [X86] Explicitly make the arguments to __slwpcb intrinsic 'void'.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 3 15:05:19 PDT 2018


Author: ctopper
Date: Sun Jun  3 15:05:19 2018
New Revision: 333855

URL: http://llvm.org/viewvc/llvm-project?rev=333855&view=rev
Log:
[X86] Explicitly make the arguments to __slwpcb intrinsic 'void'.

This is the correct way to say it takes no arguments in C.

Modified:
    cfe/trunk/lib/Headers/lwpintrin.h

Modified: cfe/trunk/lib/Headers/lwpintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/lwpintrin.h?rev=333855&r1=333854&r2=333855&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/lwpintrin.h (original)
+++ cfe/trunk/lib/Headers/lwpintrin.h Sun Jun  3 15:05:19 2018
@@ -58,7 +58,7 @@ __llwpcb (void *__addr)
 ///    Address to the current Lightweight Profiling Control Block (LWPCB).
 ///    If LWP is not currently enabled, returns NULL.
 static __inline__ void* __DEFAULT_FN_ATTRS
-__slwpcb ()
+__slwpcb (void)
 {
   return __builtin_ia32_slwpcb();
 }




More information about the cfe-commits mailing list