diff options
author | Thomas Munro <tmunro@postgresql.org> | 2019-08-25 13:54:48 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2019-08-25 14:45:51 +1200 |
commit | f493d98c167321e5d5c17dd7d795721045a81c97 (patch) | |
tree | 89133f82b8cca034e24edcfe01ab789867a83ac7 /src/backend/jit/llvm/llvmjit_inline.cpp | |
parent | 06fdc4e4d33c40dbf886565336574da5566878f4 (diff) | |
download | postgresql-f493d98c167321e5d5c17dd7d795721045a81c97.tar.gz postgresql-f493d98c167321e5d5c17dd7d795721045a81c97.zip |
Don't rely on llvm::make_unique.
Bleeding-edge LLVM has stopped supplying replacements for various
C++14 library features, for people on older C++ versions. Since we're
not ready to require C++14 yet, just use plain old new instead of
make_unique. As revealed by buildfarm animal seawasp.
Back-patch to 11.
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/CA%2BhUKGJWG7unNqmkxg7nC5o3o-0p2XP6co4r%3D9epqYMm8UY4Mw%40mail.gmail.com
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_inline.cpp')
-rw-r--r-- | src/backend/jit/llvm/llvmjit_inline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp index 0513998b021..688edfe5254 100644 --- a/src/backend/jit/llvm/llvmjit_inline.cpp +++ b/src/backend/jit/llvm/llvmjit_inline.cpp @@ -174,7 +174,7 @@ llvm_inline(LLVMModuleRef M) static std::unique_ptr<ImportMapTy> llvm_build_inline_plan(llvm::Module *mod) { - std::unique_ptr<ImportMapTy> globalsToInline = llvm::make_unique<ImportMapTy>(); + std::unique_ptr<ImportMapTy> globalsToInline(new ImportMapTy()); FunctionInlineStates functionStates; InlineWorkList worklist; |