summaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-29 13:14:53 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-29 13:14:53 +0000
commit7cf869dd1dc8bc9310e408fd139d042dc0dabea7 (patch)
tree0a9b0ac20bb06ded51b630bfbbc0a827635579d3 /gcc/omp-low.c
parent2adb88139c8475e21d07dc4e7859d9df85767596 (diff)
downloadgcc-7cf869dd1dc8bc9310e408fd139d042dc0dabea7.tar.gz
PR middle-end/39958
* omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE for trees other than decls/types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 1a4aea9b37b..e1fb7231c3e 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -1911,7 +1911,11 @@ scan_omp_1_op (tree *tp, int *walk_subtrees, void *data)
if (ctx && TYPE_P (t))
*tp = remap_type (t, &ctx->cb);
else if (!DECL_P (t))
- *walk_subtrees = 1;
+ {
+ *walk_subtrees = 1;
+ if (ctx)
+ TREE_TYPE (t) = remap_type (TREE_TYPE (t), &ctx->cb);
+ }
break;
}