Skip to content

Commit 01f4ea9

Browse files
committed
Replace llvm::make_unique() with std::make_unique()
1 parent d420140 commit 01f4ea9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/rustllvm/ArchiveWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extern "C" void LLVMRustDestroyArchive(LLVMRustArchiveRef RustArchive) {
8989
extern "C" LLVMRustArchiveIteratorRef
9090
LLVMRustArchiveIteratorNew(LLVMRustArchiveRef RustArchive) {
9191
Archive *Archive = RustArchive->getBinary();
92-
std::unique_ptr<Error> Err = llvm::make_unique<Error>(Error::success());
92+
std::unique_ptr<Error> Err = std::make_unique<Error>(Error::success());
9393
auto Cur = Archive->child_begin(*Err);
9494
if (*Err) {
9595
LLVMRustSetLastError(toString(std::move(*Err)).c_str());

src/rustllvm/Linker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern "C" RustLinker*
1818
LLVMRustLinkerNew(LLVMModuleRef DstRef) {
1919
Module *Dst = unwrap(DstRef);
2020

21-
auto Ret = llvm::make_unique<RustLinker>(*Dst);
21+
auto Ret = std::make_unique<RustLinker>(*Dst);
2222
return Ret.release();
2323
}
2424

src/rustllvm/PassWrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
863863
int num_modules,
864864
const char **preserved_symbols,
865865
int num_symbols) {
866-
auto Ret = llvm::make_unique<LLVMRustThinLTOData>();
866+
auto Ret = std::make_unique<LLVMRustThinLTOData>();
867867

868868
// Load each module's summary and merge it into one combined index
869869
for (int i = 0; i < num_modules; i++) {
@@ -1095,7 +1095,7 @@ struct LLVMRustThinLTOBuffer {
10951095

10961096
extern "C" LLVMRustThinLTOBuffer*
10971097
LLVMRustThinLTOBufferCreate(LLVMModuleRef M) {
1098-
auto Ret = llvm::make_unique<LLVMRustThinLTOBuffer>();
1098+
auto Ret = std::make_unique<LLVMRustThinLTOBuffer>();
10991099
{
11001100
raw_string_ostream OS(Ret->data);
11011101
{

src/rustllvm/RustWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ struct LLVMRustModuleBuffer {
14501450

14511451
extern "C" LLVMRustModuleBuffer*
14521452
LLVMRustModuleBufferCreate(LLVMModuleRef M) {
1453-
auto Ret = llvm::make_unique<LLVMRustModuleBuffer>();
1453+
auto Ret = std::make_unique<LLVMRustModuleBuffer>();
14541454
{
14551455
raw_string_ostream OS(Ret->data);
14561456
{

0 commit comments

Comments
 (0)