diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2017-10-11 15:02:32 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2017-10-11 15:02:32 +0200 |
commit | a1b8ee536a7ab5c8d96ca98894009937a8c01608 (patch) | |
tree | 98e0c2b04cf3e352ea36c2290336f83f05b55b64 /gcc/cp/cp-gimplify.c | |
parent | adbfebe68eb0f236026adb817435ee0a20906b04 (diff) |
Merge branches/gcc-7-branch rev 253626.
Change-Id: If635aa7dbff0d433569bcb961bd02d8e16b894bf
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r-- | gcc/cp/cp-gimplify.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index eae2a55a029..7e7f3a2d101 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -924,6 +924,8 @@ omp_var_to_track (tree decl) tree type = TREE_TYPE (decl); if (is_invisiref_parm (decl)) type = TREE_TYPE (type); + else if (TREE_CODE (type) == REFERENCE_TYPE) + type = TREE_TYPE (type); while (TREE_CODE (type) == ARRAY_TYPE) type = TREE_TYPE (type); if (type == error_mark_node || !CLASS_TYPE_P (type)) @@ -976,6 +978,8 @@ omp_cxx_notice_variable (struct cp_genericize_omp_taskreg *omp_ctx, tree decl) tree type = TREE_TYPE (decl); if (is_invisiref_parm (decl)) type = TREE_TYPE (type); + else if (TREE_CODE (type) == REFERENCE_TYPE) + type = TREE_TYPE (type); while (TREE_CODE (type) == ARRAY_TYPE) type = TREE_TYPE (type); get_copy_ctor (type, tf_none); |