diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp index a0b7619cd2b..1eafb96fde0 100644 --- a/lib/Support/ErrorHandling.cpp +++ b/lib/Support/ErrorHandling.cpp @@ -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(user_data); + LLVM_EXTENSION reinterpret_cast(user_data); handler(reason.c_str()); } void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler) { - install_fatal_error_handler( - bindingsErrorHandler, reinterpret_cast(Handler)); + install_fatal_error_handler(bindingsErrorHandler, + LLVM_EXTENSION reinterpret_cast(Handler)); } void LLVMResetFatalErrorHandler() {