[Libclc-dev] [PATCH] Fix build broken by LLVM commit r209103

Jeroen Ketema j.ketema at imperial.ac.uk
Tue May 27 17:04:27 PDT 2014


Bump (also on previous patches).

Jeroen

On 19 May 2014, at 15:23, Jeroen Ketema <j.ketema at imperial.ac.uk> wrote:

> ---
> utils/prepare-builtins.cpp | 4 ++++
> 1 file changed, 4 insertions(+)
> 
> diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
> index e0ad6a3..28c3e49 100644
> --- a/utils/prepare-builtins.cpp
> +++ b/utils/prepare-builtins.cpp
> @@ -33,7 +33,11 @@ int main(int argc, char **argv) {
>  std::auto_ptr<Module> M;
> 
>  {
> +#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR > 4)
> +    std::unique_ptr<MemoryBuffer> BufferPtr;
> +#else
>    OwningPtr<MemoryBuffer> BufferPtr;
> +#endif
>    if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, BufferPtr))
>      ErrorMessage = ec.message();
>    else {
> -- 
> 1.8.5.2 (Apple Git-48)
> 





More information about the Libclc-dev mailing list