From 8ef32cb8c187641248aafb235437c95c3e206692 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 30 Jan 2018 10:01:58 -0500 Subject: [PATCH] Corrected an error in the DEF read that skips a line if a cell cannot be found. This particularly screws up the file parsing if the "END COMPONENTS" line is skipped. --- lef/defRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lef/defRead.c b/lef/defRead.c index c32c9469..351dff81 100644 --- a/lef/defRead.c +++ b/lef/defRead.c @@ -1112,7 +1112,7 @@ DefReadComponents(f, rootDef, sname, oscale, total) if ((defMacro == NULL) || ((defUse = DBCellNewUse(defMacro, usename)) == NULL)) { - LefEndStatement(f); + if (defMacro != NULL) LefEndStatement(f); break; } DBLinkCell(defUse, rootDef);