summaryrefslogtreecommitdiff
path: root/passes/abc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-18 07:31:59 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-18 07:31:59 +0100
commit52914c2e68ecb2d8bd2a650a431f921354cd444c (patch)
treeb936f08b1c543a6bc6bb0bf2f76db0b661a41f44 /passes/abc
parent3b8ebd694d95ed178b94af538f2694534b86a833 (diff)
Fixed abc eeror handling
Diffstat (limited to 'passes/abc')
-rw-r--r--passes/abc/abc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/abc/abc.cc b/passes/abc/abc.cc
index b7680f06..ccf0fccb 100644
--- a/passes/abc/abc.cc
+++ b/passes/abc/abc.cc
@@ -356,7 +356,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
if (asprintf(&p, "%s/input.v", tempdir_name) < 0) abort();
FILE *f = fopen(p, "wt");
- if (f == NULL);
+ if (f == NULL)
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
free(p);
@@ -420,7 +420,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
if (asprintf(&p, "%s/stdcells.genlib", tempdir_name) < 0) abort();
f = fopen(p, "wt");
- if (f == NULL);
+ if (f == NULL)
log_error("Opening %s for writing failed: %s\n", p, strerror(errno));
fprintf(f, "GATE ZERO 1 Y=CONST0;\n");
fprintf(f, "GATE ONE 1 Y=CONST1;\n");