From 7d872f538efc5cb3786c3aa0a6654bae7a67ec63 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 22 Mar 2021 11:33:43 -0700 Subject: Update the minimum external LLVM to 10 --- compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp') diff --git a/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp index 2797fe8df4a..97541e615da 100644 --- a/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp @@ -91,11 +91,7 @@ extern "C" void LLVMRustDestroyArchive(LLVMRustArchiveRef RustArchive) { extern "C" LLVMRustArchiveIteratorRef LLVMRustArchiveIteratorNew(LLVMRustArchiveRef RustArchive) { Archive *Archive = RustArchive->getBinary(); -#if LLVM_VERSION_GE(10, 0) std::unique_ptr Err = std::make_unique(Error::success()); -#else - std::unique_ptr Err = llvm::make_unique(Error::success()); -#endif auto Cur = Archive->child_begin(*Err); if (*Err) { LLVMRustSetLastError(toString(std::move(*Err)).c_str()); -- cgit 1.4.1-3-g733a5