[Libclc-dev] libclc patch to fix compilation
Tom Stellard
tom at stellard.net
Mon Jan 20 12:35:19 PST 2014
Hi,
Thanks for the patch. I pushed this patch with a few additions.
-Tom
On Mon, Jan 20, 2014 at 06:24:05PM +0100, Udo van den Heuvel wrote:
> Hello,
>
> Recently I was unable to compile libclc.
> Error was: ./utils/prepare-builtins.cpp:38:15: error: use of undeclared
> identifier 'ParseBitcodeFile'
>
> This patch fixes this:
>
> # git diff
> diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
> index 4ad21e8..b9906c1 100644
> --- a/utils/prepare-builtins.cpp
> +++ b/utils/prepare-builtins.cpp
> @@ -35,7 +35,7 @@ int main(int argc, char **argv) {
> if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename,
> BufferPtr))
> ErrorMessage = ec.message();
> else
> - M.reset(ParseBitcodeFile(BufferPtr.get(), Context, &ErrorMessage));
> + M.reset(*parseBitcodeFile(BufferPtr.get(), Context));
> }
>
> if (M.get() == 0) {
>
>
>
> Kind regards,
> Udo
More information about the Libclc-dev
mailing list