]> git.pld-linux.org Git - packages/postgresql.git/blame - llvm10.patch
llvm rebuild; rel 7
[packages/postgresql.git] / llvm10.patch
CommitLineData
ed68915a
JP
1From f493d98c167321e5d5c17dd7d795721045a81c97 Mon Sep 17 00:00:00 2001
2From: Thomas Munro <tmunro@postgresql.org>
3Date: Sun, 25 Aug 2019 13:54:48 +1200
4Subject: [PATCH] Don't rely on llvm::make_unique.
5
6Bleeding-edge LLVM has stopped supplying replacements for various
7C++14 library features, for people on older C++ versions. Since we're
8not ready to require C++14 yet, just use plain old new instead of
9make_unique. As revealed by buildfarm animal seawasp.
10
11Back-patch to 11.
12
13Reviewed-by: Andres Freund
14Discussion: 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
19diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp
20index 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--
332.20.1
34
This page took 0.027177 seconds and 4 git commands to generate.