From b36b6fdb32f58757175d2e727e7a98a63b0e2b76 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 12 Nov 2012 16:04:03 +0000 Subject: [PATCH] clover: Fix build with clang 3.2 --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)); -- 2.30.2