[Libclc-dev] [PATCH] Fix build broken by LLVM commit r209103
Jeroen Ketema
j.ketema at imperial.ac.uk
Tue Jun 3 08:52:10 PDT 2014
Committed. Thanks.
Jeroen
On 03 Jun 2014, at 16:48, Aaron Watry <awatry at gmail.com> wrote:
> Reviewed-by: Aaron Watry <awatry at gmail.com>
>
> On Mon, May 19, 2014 at 9:23 AM, 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)
>>
>>
>> _______________________________________________
>> Libclc-dev mailing list
>> Libclc-dev at pcc.me.uk
>> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev
More information about the Libclc-dev
mailing list