]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Pass type directly to init_typeDecl
authorSean Anderson <seanga2@gmail.com>
Mon, 29 May 2023 23:02:31 +0000 (19:02 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 4 Jun 2023 22:00:34 +0000 (22:00 +0000)
commit481c7b38f48b79fee4a52a4fd0b1d9d573a1e803
tree1ded420d4bcb5dc5d94f30de6a64c8e9d787dac3
parenta58cb16c86cf2ca19b219b52dc66a7df53728467
vhpi: Pass type directly to init_typeDecl

Anonymous types can't be looked up by their ident, so the decl is for
their base type instead. Pass the type directly instead of using
tree_type to ensure the type matches what it represents.
src/vhpi/vhpi-model.c