diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp index 02863f37064..1b1a4d9abda 100644 --- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp @@ -128,8 +128,7 @@ lld::elf::createARMRelocationPass(const ARMLinkingContext &ctx) { case llvm::ELF::ET_EXEC: if (ctx.isDynamic()) llvm_unreachable("Unhandled output file type"); - else - return std::unique_ptr<Pass>(new ARMStaticRelocationPass(ctx)); + return llvm::make_unique<ARMStaticRelocationPass>(ctx); default: llvm_unreachable("Unhandled output file type"); } |

