If ret is already defined then don't overwrite it.

This commit is contained in:
Cary R 2015-12-20 12:27:41 -08:00
parent eb8ad92422
commit 3b7ebf6aa2
1 changed files with 3 additions and 1 deletions

View File

@ -2777,7 +2777,9 @@ vector<pform_tf_port_t>*pform_make_task_ports(const struct vlltype&loc,
ret = do_make_task_ports(loc, pt, IVL_VT_CLASS, class_type, names);
}
ret = do_make_task_ports(loc, pt, IVL_VT_NO_TYPE, vtype, names);
if (! ret) {
ret = do_make_task_ports(loc, pt, IVL_VT_NO_TYPE, vtype, names);
}
if (unpacked_dims) {
for (list<perm_string>::iterator cur = names->begin()