[lld] r265566 - [lld][MachO] Clean up some unnecessarily verbose code. NFC.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 10:18:56 PDT 2016
Author: lhames
Date: Wed Apr 6 12:18:55 2016
New Revision: 265566
URL: http://llvm.org/viewvc/llvm-project?rev=265566&view=rev
Log:
[lld][MachO] Clean up some unnecessarily verbose code. NFC.
Suggested by Dave Blaikie in review of r265447. Thanks Dave!
Modified:
lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp?rev=265566&r1=265565&r2=265566&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp Wed Apr 6 12:18:55 2016
@@ -790,10 +790,7 @@ bool MachOYamlIOTaggedDocumentHandler::h
return false;
}
info->_normalizeMachOFile = nullptr;
-
- // Transfer ownership to "out" File parameter.
- std::unique_ptr<lld::File> f = std::move(*fileOrError);
- file = f.release();
+ file = fileOrError->release();
return true;
}
More information about the llvm-commits
mailing list