From 7b64d98c72e1b453934519b1033d3e60679a4197 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Mon, 6 May 2013 12:34:34 -0700 Subject: Fix build warnings/UB in LTOCodeGenerator.cpp Change the gatherModuleForLinking interface to return void, and add a default case in setMergedModuleOutputFormat to silence gcc warning. BUG=cleanup R=jvoung@chromium.org, mseaborn@chromium.org Review URL: https://codereview.chromium.org/14582019 --- include/llvm-c/lto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm-c') diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index a2bfddb0a6..ce3546bd49 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -268,7 +268,7 @@ lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); * should now by owned by the lto_code_gen_t, and will be freed when * the link is done. */ -extern bool +extern void lto_codegen_gather_module_for_link(lto_code_gen_t cg, lto_module_t mod); /** -- cgit v1.2.3-70-g09d2