Michel Dänzer <mic...@daenzer.net> writes:

> From: Michel Dänzer <michel.daen...@amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daen...@amd.com>
> ---
>  src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp 
> b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index d351bc5..7bca0d6 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -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

Reviewed-by: Francisco Jerez <curroje...@riseup.net>

Attachment: pgp31cx_4cb2L.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to