Skip to content

Commit 2e862c7

Browse files
committed
[llvm-objcopy][NFC] simplify an error return
llvm-svn: 353074
1 parent b7ecc9b commit 2e862c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,7 @@ Error MachOWriter::write() {
343343
writeLoadCommands();
344344
writeSections();
345345
writeTail();
346-
if (auto E = B.commit())
347-
return E;
348-
return Error::success();
346+
return B.commit();
349347
}
350348

351349
} // end namespace macho

0 commit comments

Comments
 (0)