about summary refs log tree commit diff
path: root/src/rustllvm/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-01-13 04:01:00 +0000
committerbors <bors@rust-lang.org>2020-01-13 04:01:00 +0000
commite82febc78e5a14356de5f713b904eebef1e86956 (patch)
treee1c8bffd16e5b0f003d8d9d61415cfb72a2549c7 /src/rustllvm/Linker.cpp
parent3ebcfa1451cfedc13a07e6353d8ade9742dfdc2a (diff)
parentc9e996f05cff70e69240b9a9d2d56e57af21eb3a (diff)
downloadrust-e82febc78e5a14356de5f713b904eebef1e86956.tar.gz
rust-e82febc78e5a14356de5f713b904eebef1e86956.zip
Auto merge of #67900 - nikic:prepare-llvm-10, r=nagisa
Prepare for LLVM 10 upgrade

Split off from #67759, this just adds the necessary compatibility bits and updates codegen tests, without performing the actual LLVM upgrade.

r? @alexcrichton
Diffstat (limited to 'src/rustllvm/Linker.cpp')
-rw-r--r--src/rustllvm/Linker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rustllvm/Linker.cpp b/src/rustllvm/Linker.cpp
index 7916721943a..69176f9cb1f 100644
--- a/src/rustllvm/Linker.cpp
+++ b/src/rustllvm/Linker.cpp
@@ -18,8 +18,7 @@ extern "C" RustLinker*
 LLVMRustLinkerNew(LLVMModuleRef DstRef) {
   Module *Dst = unwrap(DstRef);
 
-  auto Ret = llvm::make_unique<RustLinker>(*Dst);
-  return Ret.release();
+  return new RustLinker(*Dst);
 }
 
 extern "C" void