]> git.pld-linux.org Git - packages/postgresql.git/blob - llvm10.patch
- remove autoconf version check
[packages/postgresql.git] / llvm10.patch
1 From f493d98c167321e5d5c17dd7d795721045a81c97 Mon Sep 17 00:00:00 2001
2 From: Thomas Munro <tmunro@postgresql.org>
3 Date: Sun, 25 Aug 2019 13:54:48 +1200
4 Subject: [PATCH] Don't rely on llvm::make_unique.
5
6 Bleeding-edge LLVM has stopped supplying replacements for various
7 C++14 library features, for people on older C++ versions.  Since we're
8 not ready to require C++14 yet, just use plain old new instead of
9 make_unique.  As revealed by buildfarm animal seawasp.
10
11 Back-patch to 11.
12
13 Reviewed-by: Andres Freund
14 Discussion: https://postgr.es/m/CA%2BhUKGJWG7unNqmkxg7nC5o3o-0p2XP6co4r%3D9epqYMm8UY4Mw%40mail.gmail.com
15 ---
16  src/backend/jit/llvm/llvmjit_inline.cpp | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp
20 index 0513998b02..688edfe525 100644
21 --- a/src/backend/jit/llvm/llvmjit_inline.cpp
22 +++ b/src/backend/jit/llvm/llvmjit_inline.cpp
23 @@ -174,7 +174,7 @@ llvm_inline(LLVMModuleRef M)
24  static std::unique_ptr<ImportMapTy>
25  llvm_build_inline_plan(llvm::Module *mod)
26  {
27 -       std::unique_ptr<ImportMapTy> globalsToInline = llvm::make_unique<ImportMapTy>();
28 +       std::unique_ptr<ImportMapTy> globalsToInline(new ImportMapTy());
29         FunctionInlineStates functionStates;
30         InlineWorkList worklist;
31  
32 -- 
33 2.20.1
34
This page took 0.0214 seconds and 3 git commands to generate.