From 58fd93ad90d26b7e3fdf5ae40b7f1a6a12ba5257 Mon Sep 17 00:00:00 2001 From: Amaury Sechet Date: Sun, 12 Jun 2016 07:56:21 +0000 Subject: [PATCH] Change () to (void) in the C API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272506 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 2 +- lib/IR/Core.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 3db6f36b3af..3d1ebc531c8 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -502,7 +502,7 @@ unsigned LLVMGetMDKindID(const char *Name, unsigned SLen); * going through the C API deprecation cycle. */ unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen); -unsigned LLVMGetLastEnumAttributeKind(); +unsigned LLVMGetLastEnumAttributeKind(void); /** * Create an enum attribute. diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 1dbdccb794a..380fca8c10f 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -128,7 +128,7 @@ unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen) { return getAttrKindFromName(StringRef(Name, SLen)); } -unsigned LLVMGetLastEnumAttributeKind() { +unsigned LLVMGetLastEnumAttributeKind(void) { return Attribute::AttrKind::EndAttrKinds; }