diff options
author | Alp Toker <alp@nuanti.com> | 2013-10-22 12:30:55 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-10-22 12:30:55 +0000 |
commit | 16da44c56235d4aa12c001d94f87ca1dd8e30837 (patch) | |
tree | ae857299f134386d8b02822f23587ee7b1bc74f0 /lib/Support/ErrorHandling.cpp | |
parent | 5cb5ff8b1478ed413a9e9fae43b1496f5a97a2dc (diff) | |
download | llvm-16da44c56235d4aa12c001d94f87ca1dd8e30837.tar.gz llvm-16da44c56235d4aa12c001d94f87ca1dd8e30837.tar.bz2 llvm-16da44c56235d4aa12c001d94f87ca1dd8e30837.tar.xz |
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
Diffstat (limited to 'lib/Support/ErrorHandling.cpp')
-rw-r--r-- | lib/Support/ErrorHandling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp index a0b7619cd2..1eafb96fde 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<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() { |