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 521f998fe5817a424ab3ee78b0d0c3ff2828aad7..2b07053ba208582f302772f6d0715ea2437abe18 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));