summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-09 02:36:09 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-09 02:36:09 +0000
commit5e01ef406b0a8c808877a085c732a216356cc3ff (patch)
tree2a05a5532953cc86fe3920d6436adea0ebbb291d /tools/lto
parentf3ceb82abbf44cf3e0604e81162c879b02717cef (diff)
void foo() is not a valid C prototype, one has to write void foo(void)
Remove a warning introduced in r262977 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/lto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp
index 2c1417db5fc..c6101a56f8c 100644
--- a/tools/lto/lto.cpp
+++ b/tools/lto/lto.cpp
@@ -445,7 +445,7 @@ void lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
// ThinLTO API below
-thinlto_code_gen_t thinlto_create_codegen() {
+thinlto_code_gen_t thinlto_create_codegen(void) {
lto_initialize();
ThinLTOCodeGenerator *CodeGen = new ThinLTOCodeGenerator();
CodeGen->setTargetOptions(InitTargetOptionsFromCodeGenFlags());