summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-11-12 16:04:03 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-11-16 17:07:56 -0500
commitb36b6fdb32f58757175d2e727e7a98a63b0e2b76 (patch)
tree2901ff50a4757b62c1a82f6d70cc2c57ce408a26
parent71877143b62ce3f10ef4716d19361fa95a53ff42 (diff)
clover: Fix build with clang 3.2
-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 521f998fe5..2b07053ba2 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));