From 84f63ad5453424d4420498b230a6f9e3ad4a7c3e Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 25 May 2020 16:13:42 -0400 Subject: [PATCH] Corrected segfault condition when running "lef write" on a cell with split tiles (error caused by previous commit). --- lef/lefWrite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 2283fdb3..98f6ecc1 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -537,9 +537,11 @@ lefYankContacts(tile, cdata) /* Ignore marked tiles */ if (tile->ti_client != (ClientData)CLIENTDEFAULT) return 0; - ttype = TiGetTypeExact(tile); + /* Ignore split tiles */ + if (IsSplit(tile)) return 0; /* Output geometry only for defined contact layers, on their home plane */ + ttype = TiGetType(tile); if (!DBIsContact(ttype)) return 0; /* If this is a stacked contact, find any residue contact type with a */