aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFModuleDefinition.cpp
diff options
context:
space:
mode:
authorKeno Fischer <keno@alumni.harvard.edu>2017-10-26 16:44:13 +0000
committerKeno Fischer <keno@alumni.harvard.edu>2017-10-26 16:44:13 +0000
commit1c43ad09650adcb66525f8e074e708691b3c841b (patch)
tree75404c86279b17e9fbf37f4507c18ea1652263d3 /llvm/lib/Object/COFFModuleDefinition.cpp
parent049ed12df7f2a575355365dcedbd0dfe0737adfa (diff)
downloadllvm-1c43ad09650adcb66525f8e074e708691b3c841b.zip
llvm-1c43ad09650adcb66525f8e074e708691b3c841b.tar.gz
llvm-1c43ad09650adcb66525f8e074e708691b3c841b.tar.bz2
[DynamicLibrary] Fix build on musl libc
Summary: On musl libc, stdin/out/err are defined as `FILE* const` globals, and their address is not implicitly convertible to void *, or at least gcc 6 doesn't allow it, giving errors like: ``` error: cannot initialize return object of type 'void *' with an rvalue of type 'FILE *const *' (aka '_IO_FILE *const *') EXPLICIT_SYMBOL(stderr); ^~~~~~~~~~~~~~~~~~~~~~~ ``` Add an explicit cast to fix that problem. Reviewers: marsupial, krytarowski, dim Reviewed By: dim Differential Revision: https://reviews.llvm.org/D39297 llvm-svn: 316672
Diffstat (limited to 'llvm/lib/Object/COFFModuleDefinition.cpp')
0 files changed, 0 insertions, 0 deletions