llvm.org GIT mirror llvm / 16da44c
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 Alp Toker 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
106106 static void bindingsErrorHandler(void *user_data, const std::string& reason,
107107 bool gen_crash_diag) {
108108 LLVMFatalErrorHandler handler =
109 reinterpret_cast(user_data);
109 LLVM_EXTENSION reinterpret_cast(user_data);
110110 handler(reason.c_str());
111111 }
112112
113113 void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler) {
114 install_fatal_error_handler(
115 bindingsErrorHandler, reinterpret_cast(Handler));
114 install_fatal_error_handler(bindingsErrorHandler,
115 LLVM_EXTENSION reinterpret_cast(Handler));
116116 }
117117
118118 void LLVMResetFatalErrorHandler() {