diff options
author | Tom Stellard <[email protected]> | 2012-11-12 16:04:03 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-11-16 17:07:56 -0500 |
commit | b36b6fdb32f58757175d2e727e7a98a63b0e2b76 (patch) | |
tree | 2901ff50a4757b62c1a82f6d70cc2c57ce408a26 /src/gallium | |
parent | 71877143b62ce3f10ef4716d19361fa95a53ff42 (diff) |
clover: Fix build with clang 3.2
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/invocation.cpp | 7 |
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)); |