[libclc] 131/291: Fix build broken by LLVM commit r209103
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:41 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 61dedf26ddf267b745daca0ed7df84a9d8487341
Author: Jeroen Ketema <j.ketema at imperial.ac.uk>
Date: Tue Jun 3 15:43:57 2014 +0000
Fix build broken by LLVM commit r209103
Reviewed-by: Aaron Watry <awatry at gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@210111 91177308-0d34-0410-b5e6-96231b3b80d8
---
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 {
--
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