mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
Fix the -Werror -Wpedantic clang selfhost build
This is a stopgap fix for cast warnings introduced in r192864. A proper fix should be investigated by the author when possible. llvm-svn: 193160
This commit is contained in:
parent
06be00bac8
commit
be591422bc
@ -107,13 +107,13 @@ void llvm::llvm_unreachable_internal(const char *msg, const char *file,
|
||||
static void bindingsErrorHandler(void *user_data, const std::string& reason,
|
||||
bool gen_crash_diag) {
|
||||
LLVMFatalErrorHandler handler =
|
||||
reinterpret_cast<LLVMFatalErrorHandler>(user_data);
|
||||
LLVM_EXTENSION reinterpret_cast<LLVMFatalErrorHandler>(user_data);
|
||||
handler(reason.c_str());
|
||||
}
|
||||
|
||||
void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler) {
|
||||
install_fatal_error_handler(
|
||||
bindingsErrorHandler, reinterpret_cast<void*>(Handler));
|
||||
install_fatal_error_handler(bindingsErrorHandler,
|
||||
LLVM_EXTENSION reinterpret_cast<void *>(Handler));
|
||||
}
|
||||
|
||||
void LLVMResetFatalErrorHandler() {
|
||||
|
Loading…
Reference in New Issue
Block a user