COFF: Return an error_code directly.

llvm-svn: 238486
This commit is contained in:
Rui Ueyama 2015-05-28 20:39:29 +00:00
parent f2d1c73cf3
commit 322b2c413d
1 changed files with 1 additions and 3 deletions

View File

@ -371,9 +371,7 @@ std::error_code Writer::write(StringRef OutputPath) {
writeHeader(); writeHeader();
writeSections(); writeSections();
applyRelocations(); applyRelocations();
if (auto EC = Buffer->commit()) return Buffer->commit();
return EC;
return std::error_code();
} }
} // namespace coff } // namespace coff