From 79c94ea62a665beccf12a7b93b23599ae04937dd Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 31 Mar 2023 15:20:57 -0700 Subject: [NFC] Remove our bespoke `make_unique` implementation (#5613) This code predates our adoption of C++14 and can now be removed in favor of `std::make_unique`, which should be more efficient. --- src/passes/StackIR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/StackIR.cpp') diff --git a/src/passes/StackIR.cpp b/src/passes/StackIR.cpp index 2614a36a1..bbce6bae8 100644 --- a/src/passes/StackIR.cpp +++ b/src/passes/StackIR.cpp @@ -40,7 +40,7 @@ struct GenerateStackIR : public WalkerPass> { void doWalkFunction(Function* func) { StackIRGenerator stackIRGen(*getModule(), func); stackIRGen.write(); - func->stackIR = make_unique(); + func->stackIR = std::make_unique(); func->stackIR->swap(stackIRGen.getStackIR()); } }; -- cgit v1.2.3