clover: Fix build with clang 3.2

This commit is contained in:
Tom Stellard
2012-11-12 16:04:03 +00:00
parent 71877143b6
commit b36b6fdb32

View File

@@ -132,7 +132,12 @@ namespace {
clang::LangStandard::lang_opencl11); clang::LangStandard::lang_opencl11);
#endif #endif
c.createDiagnostics(0, NULL, new clang::TextDiagnosticPrinter( 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, c.getPreprocessorOpts().addRemappedFile(name,
llvm::MemoryBuffer::getMemBuffer(source)); llvm::MemoryBuffer::getMemBuffer(source));