3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-04 14:25:47 +00:00

gzip: refactor file open failure errors

This commit is contained in:
Emil J. Tywoniak 2025-04-29 10:37:35 +02:00
parent ab614b1271
commit adb1986dc1
5 changed files with 3 additions and 10 deletions

View file

@ -310,8 +310,6 @@ struct ClockgatePass : public Pass {
LibertyMergedCells merged;
for (auto path : liberty_files) {
std::istream* f = uncompressed(path);
if (f->fail())
log_cmd_error("Can't open liberty file `%s': %s\n", path.c_str(), strerror(errno));
LibertyParser p(*f, path);
merged.merge(p);
delete f;