summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto/lto.cpp
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
commit3ed41d6aa435fc4b3dd56e6e6e7dd8bba4cd8977 (patch)
treecda5343585fd41bbd873a1a62e826584ec5c95cc /llvm/tools/lto/lto.cpp
parent2eac48de9e4d0f951925dba8c4c7d2427590e61b (diff)
downloadbcm5719-llvm-3ed41d6aa435fc4b3dd56e6e6e7dd8bba4cd8977.tar.gz
bcm5719-llvm-3ed41d6aa435fc4b3dd56e6e6e7dd8bba4cd8977.zip
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> llvm-svn: 262990
Diffstat (limited to 'llvm/tools/lto/lto.cpp')
-rw-r--r--llvm/tools/lto/lto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lto/lto.cpp b/llvm/tools/lto/lto.cpp
index 2c1417db5fc..c6101a56f8c 100644
--- a/llvm/tools/lto/lto.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud