Skip to content

Commit f493d98

Browse files
committed
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
1 parent 06fdc4e commit f493d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/jit/llvm/llvmjit_inline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ llvm_inline(LLVMModuleRef M)
174174
static std::unique_ptr<ImportMapTy>
175175
llvm_build_inline_plan(llvm::Module *mod)
176176
{
177-
std::unique_ptr<ImportMapTy> globalsToInline = llvm::make_unique<ImportMapTy>();
177+
std::unique_ptr<ImportMapTy> globalsToInline(new ImportMapTy());
178178
FunctionInlineStates functionStates;
179179
InlineWorkList worklist;
180180

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy