From 33fd854584d04726add10e75326995d3b0bc50f2 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 6 Apr 2016 17:18:55 +0000 Subject: [PATCH] [lld][MachO] Clean up some unnecessarily verbose code. NFC. Suggested by Dave Blaikie in review of r265447. Thanks Dave! llvm-svn: 265566 --- lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp index 276857016baa..66be77173983 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp @@ -790,10 +790,7 @@ bool MachOYamlIOTaggedDocumentHandler::handledDocTag(llvm::yaml::IO &io, return false; } info->_normalizeMachOFile = nullptr; - - // Transfer ownership to "out" File parameter. - std::unique_ptr f = std::move(*fileOrError); - file = f.release(); + file = fileOrError->release(); return true; }