[libclc] 22/92: prepare_builtins: Fix compile breakage with older LLVM

Andreas Boll aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

aboll-guest pushed a commit to branch master
in repository libclc.

commit 1f54d3e8df04dc7a6740265d506526c0c6510038
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date:   Mon Sep 25 16:04:37 2017 +0000

    prepare_builtins: Fix compile breakage with older LLVM
    
    Fixes r314050
    
    reviewer: Tom Stellard
    
    Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@314111 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 570ed43..5cd32cd 100644
--- a/utils/prepare-builtins.cpp
+++ b/utils/prepare-builtins.cpp
@@ -84,8 +84,13 @@ int main(int argc, char **argv) {
   }
 
   std::error_code EC;
+#if HAVE_LLVM >= 0x0600
   std::unique_ptr<ToolOutputFile> Out(
       new ToolOutputFile(OutputFilename, EC, sys::fs::F_None));
+#else
+  std::unique_ptr<tool_output_file> Out(
+      new tool_output_file(OutputFilename, EC, sys::fs::F_None));
+#endif
   if (EC) {
     errs() << EC.message() << '\n';
     exit(1);

-- 
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