From: Tom Stellard Date: Mon, 12 Nov 2012 16:04:03 +0000 (+0000) Subject: clover: Fix build with clang 3.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b36b6fdb32f58757175d2e727e7a98a63b0e2b76;p=mesa.git clover: Fix build with clang 3.2 --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 521f998fe58..2b07053ba20 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -132,7 +132,12 @@ namespace { clang::LangStandard::lang_opencl11); #endif c.createDiagnostics(0, NULL, new clang::TextDiagnosticPrinter( - s_log, c.getDiagnosticOpts())); + s_log, +#if HAVE_LLVM <= 0x0301 + c.getDiagnosticOpts())); +#else + &c.getDiagnosticOpts())); +#endif c.getPreprocessorOpts().addRemappedFile(name, llvm::MemoryBuffer::getMemBuffer(source));