st/clover: Fix build against LLVM SVN >= r216583
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
eee9f6ae8a
commit
eae9da879f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue