mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
COFF: Return an error_code directly.
llvm-svn: 238486
This commit is contained in:
@@ -371,9 +371,7 @@ std::error_code Writer::write(StringRef OutputPath) {
|
||||
writeHeader();
|
||||
writeSections();
|
||||
applyRelocations();
|
||||
if (auto EC = Buffer->commit())
|
||||
return EC;
|
||||
return std::error_code();
|
||||
return Buffer->commit();
|
||||
}
|
||||
|
||||
} // namespace coff
|
||||
|
||||
Reference in New Issue
Block a user