[llvm] r353074 - [llvm-objcopy][NFC] simplify an error return
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 4 11:09:20 PST 2019
Author: rupprecht
Date: Mon Feb 4 11:09:20 2019
New Revision: 353074
URL: http://llvm.org/viewvc/llvm-project?rev=353074&view=rev
Log:
[llvm-objcopy][NFC] simplify an error return
Modified:
llvm/trunk/tools/llvm-objcopy/MachO/MachOWriter.cpp
Modified: llvm/trunk/tools/llvm-objcopy/MachO/MachOWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/MachO/MachOWriter.cpp?rev=353074&r1=353073&r2=353074&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/MachO/MachOWriter.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/MachO/MachOWriter.cpp Mon Feb 4 11:09:20 2019
@@ -343,9 +343,7 @@ Error MachOWriter::write() {
writeLoadCommands();
writeSections();
writeTail();
- if (auto E = B.commit())
- return E;
- return Error::success();
+ return B.commit();
}
} // end namespace macho
More information about the llvm-commits
mailing list