diff options
-rw-r--r-- | llvm/include/llvm-c/lto.h | 2 | ||||
-rw-r--r-- | llvm/tools/lto/lto.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 06456e45859..df27ba8abe1 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -580,7 +580,7 @@ typedef struct { * * \since LTO_API_VERSION=18 */ -extern thinlto_code_gen_t thinlto_create_codegen(); +extern thinlto_code_gen_t thinlto_create_codegen(void); /** * Frees the generator and all memory it internally allocated. 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()); |