]> granicus.if.org Git - clang/commitdiff
[X86] Explicitly make the arguments to __slwpcb intrinsic 'void'.
authorCraig Topper <craig.topper@intel.com>
Sun, 3 Jun 2018 22:05:19 +0000 (22:05 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 3 Jun 2018 22:05:19 +0000 (22:05 +0000)
This is the correct way to say it takes no arguments in C.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/lwpintrin.h

index 5877ae8b3b8d14ef8947862ac9d42ab2bc5ee5ea..3455575cced64dd5a766ebd4f2ccb05fdc5ff753 100644 (file)
@@ -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();
 }