[Libclc-dev] libclc patch to fix compilation

Udo van den Heuvel udovdh at xs4all.nl
Mon Jan 20 09:14:25 PST 2014


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