summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-10-22 12:30:55 +0000
committerAlp Toker <alp@nuanti.com>2013-10-22 12:30:55 +0000
commitacf49f31b6d4fd1589bd47600ec7fc956e18750a (patch)
tree3e4a4fe4db473f700b0c73b2a4caa4fa41a22f57 /llvm/lib/Support/ErrorHandling.cpp
parentd66b50c96c3bd03cf5ab2255ea770f70c65426b8 (diff)
downloadbcm5719-llvm-acf49f31b6d4fd1589bd47600ec7fc956e18750a.tar.gz
bcm5719-llvm-acf49f31b6d4fd1589bd47600ec7fc956e18750a.zip
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
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index a0b7619cd2b..1eafb96fde0 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud