st/clover: Fix build against LLVM SVN >= r216583

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Michel Dänzer 2014-08-28 12:05:21 +09:00 committed by Michel Dänzer
parent eee9f6ae8a
commit eae9da879f
1 changed files with 5 additions and 0 deletions

View File

@ -211,8 +211,13 @@ namespace {
&c.getDiagnosticOpts()));
#endif
#if HAVE_LLVM >= 0x0306
c.getPreprocessorOpts().addRemappedFile(name,
llvm::MemoryBuffer::getMemBuffer(source).release());
#else
c.getPreprocessorOpts().addRemappedFile(name,
llvm::MemoryBuffer::getMemBuffer(source));
#endif
// Setting this attribute tells clang to link this file before
// performing any optimizations. This is required so that