summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp7
1 files changed, 6 insertions, 1 deletions
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));