aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/gcc/ortho-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/gcc/ortho-lang.c')
-rw-r--r--src/ortho/gcc/ortho-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ortho/gcc/ortho-lang.c b/src/ortho/gcc/ortho-lang.c
index 020c9e5ea..0c38fbfce 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;