diff options
author | Derek Schuff <dschuff@chromium.org> | 2013-05-06 12:34:34 -0700 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2013-05-06 12:34:34 -0700 |
commit | 7b64d98c72e1b453934519b1033d3e60679a4197 (patch) | |
tree | 903fe6f8fc072c6014f2d3d457de720dc3665025 /include/llvm-c | |
parent | 7ecb66dd080ef1291bd166475c87e2f6b4a1d1a8 (diff) |
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
Diffstat (limited to 'include/llvm-c')
-rw-r--r-- | include/llvm-c/lto.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); /** |