diff --git a/lef/defRead.c b/lef/defRead.c index ef0053d9..6293faa2 100644 --- a/lef/defRead.c +++ b/lef/defRead.c @@ -2626,7 +2626,7 @@ DefRead(inName, dolabels, annotate, noblockage) oscale, total); break; case DEF_END: - if (!LefParseEndStatement(token, "DESIGN")) + if (!LefParseEndStatement(f, "DESIGN")) { LefError(DEF_ERROR, "END statement out of context.\n"); keyword = -1;