Skip to content

Commit

Permalink
Merge pull request #964 from CAS-Atlantic/odin_coverity_CID203686
Browse files Browse the repository at this point in the history
odin_coverity_CID203686
  • Loading branch information
jeanlego committed Sep 17, 2019
2 parents f37c76c + cf8b67c commit 1597e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ODIN_II/SRC/ast_elaborate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2156,9 +2156,9 @@ ast_node_t *reduce_expressions(ast_node_t *node, sc_hierarchy *local_ref, long *
temp_instance->children[1]->children[0]->types.identifier,
NULL, -1);

long sc_spot;
long sc_spot = sc_lookup_string(module_names_to_idx, temp_instance_name);
/* lookup the name of the module associated with this instantiated point */
oassert((sc_spot = sc_lookup_string(module_names_to_idx, temp_instance_name)) != -1);
oassert(sc_spot != -1);
ast_node_t *instance = (ast_node_t *)module_names_to_idx->data[sc_spot];

/* elaboration */
Expand Down

0 comments on commit 1597e9a

Please sign in to comment.