clover: Fix build with clang 3.2
authorTom Stellard <thomas.stellard@amd.com>
Mon, 12 Nov 2012 16:04:03 +0000 (16:04 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 16 Nov 2012 22:07:56 +0000 (17:07 -0500)
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 521f998..2b07053 100644 (file)
@@ -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));