1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-17 21:32:04 +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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alp Toker 2013-10-22 12:30:55 +00:00
parent 5cb5ff8b14
commit 16da44c562

@ -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, static void bindingsErrorHandler(void *user_data, const std::string& reason,
bool gen_crash_diag) { bool gen_crash_diag) {
LLVMFatalErrorHandler handler = LLVMFatalErrorHandler handler =
reinterpret_cast<LLVMFatalErrorHandler>(user_data); LLVM_EXTENSION reinterpret_cast<LLVMFatalErrorHandler>(user_data);
handler(reason.c_str()); handler(reason.c_str());
} }
void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler) { void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler) {
install_fatal_error_handler( install_fatal_error_handler(bindingsErrorHandler,
bindingsErrorHandler, reinterpret_cast<void*>(Handler)); LLVM_EXTENSION reinterpret_cast<void *>(Handler));
} }
void LLVMResetFatalErrorHandler() { void LLVMResetFatalErrorHandler() {