diff options
author | Tristan Gingold | 2015-06-18 22:37:52 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-06-18 22:37:52 +0200 |
commit | 03f2df0a31ac07711863c9580bc3bc48cbab3a3b (patch) | |
tree | 75ebb46eebccd07113efd31bb29ae96e5b9fb119 /src/ortho/gcc | |
parent | 8a3f67db595be25637b4edc65f18138b48ccdac6 (diff) | |
download | ghdl-03f2df0a31ac07711863c9580bc3bc48cbab3a3b.tar.gz ghdl-03f2df0a31ac07711863c9580bc3bc48cbab3a3b.tar.bz2 ghdl-03f2df0a31ac07711863c9580bc3bc48cbab3a3b.zip |
signals: simplify and fix code for delayed signals.
fix ticket89.
Diffstat (limited to 'src/ortho/gcc')
-rw-r--r-- | src/ortho/gcc/ortho-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ortho/gcc/ortho-lang.c b/src/ortho/gcc/ortho-lang.c index 020c9e5..0c38fbf 100644 --- a/src/ortho/gcc/ortho-lang.c +++ b/src/ortho/gcc/ortho-lang.c @@ -1409,7 +1409,7 @@ new_selected_element (tree rec, tree el) { tree res; - gcc_assert (TREE_CODE (TREE_TYPE (rec)) == RECORD_TYPE); + gcc_assert (RECORD_OR_UNION_TYPE_P (TREE_TYPE (rec))); res = build3 (COMPONENT_REF, TREE_TYPE (el), rec, el, NULL_TREE); return res; |