From c7f160e8960d1eba6cd45747a4e3158c05e87103 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Mon, 8 Jan 2024 11:51:42 -0800 Subject: [PATCH] fix --- templates/SynthSubset.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/SynthSubset.cpp b/templates/SynthSubset.cpp index 37a5c971..dd5fd2af 100644 --- a/templates/SynthSubset.cpp +++ b/templates/SynthSubset.cpp @@ -734,6 +734,7 @@ void SynthSubset::leaveArray_var(const array_var* object, vpiHandle handle) { if (vars->empty()) return; variables* var = vars->at(0); const ref_typespec* ref_tps = var->Typespec(); + if (!ref_tps) return; const typespec* tps = ref_tps->Actual_typespec(); if (tps->UhdmType() == uhdmlogic_typespec) { logic_typespec* ltps = (logic_typespec*)tps;