From 78ee61558da2ee6baa31e95a4e10b31b5dd1b4ce Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 13 Jul 2008 15:27:07 +0100 Subject: [PATCH] Remove redundant test Signal is guaranteed to appear in arch_scope or its parent by the surrounding `if' statement. --- tgt-vhdl/scope.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/tgt-vhdl/scope.cc b/tgt-vhdl/scope.cc index f1a23536a..481e90bca 100644 --- a/tgt-vhdl/scope.cc +++ b/tgt-vhdl/scope.cc @@ -68,9 +68,6 @@ static vhdl_expr *nexus_to_expr(vhdl_scope *arch_scope, ivl_nexus_t nexus, const char *signame = get_renamed_signal(sig).c_str(); vhdl_decl *decl = arch_scope->get_decl(signame); - if (NULL == decl) - continue; // Not in this scope - vhdl_type *type = new vhdl_type(*(decl->get_type())); return new vhdl_var_ref(signame, type); }