[libclc] 179/291: Fix build against LLVM SVN >= r216488
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit e822ae33c3547e0dcc8a32da97f987427b8bfe1d
Author: Michel Danzer <michel.daenzer at amd.com>
Date: Thu Aug 28 06:19:37 2014 +0000
Fix build against LLVM SVN >= r216488
Tested-by: Aaron Watry <awatry at gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@216654 91177308-0d34-0410-b5e6-96231b3b80d8
---
utils/prepare-builtins.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
index afa64a8..ee51edf 100644
--- a/utils/prepare-builtins.cpp
+++ b/utils/prepare-builtins.cpp
@@ -62,7 +62,12 @@ int main(int argc, char **argv) {
ErrorMessage = ec.message();
else {
#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR > 4)
+# if LLVM_360_AND_NEWER
+ ErrorOr<Module *> ModuleOrErr =
+ parseBitcodeFile(BufferPtr.get()->getMemBufferRef(), Context);
+# else
ErrorOr<Module *> ModuleOrErr = parseBitcodeFile(BufferPtr.get(), Context);
+# endif
if (ERROR_CODE ec = ModuleOrErr.getError())
ErrorMessage = ec.message();
M.reset(ModuleOrErr.get());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list