diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-05-29 15:14:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-05-29 15:14:53 +0200 |
commit | a900ae6bfb6cd39869d521ec912c09fb7a345f6c (patch) | |
tree | 0a9b0ac20bb06ded51b630bfbbc0a827635579d3 /gcc/omp-low.c | |
parent | 821bb7f8f9dd6c54fa081b098a60411ca786d6aa (diff) | |
download | gcc-a900ae6bfb6cd39869d521ec912c09fb7a345f6c.zip gcc-a900ae6bfb6cd39869d521ec912c09fb7a345f6c.tar.gz gcc-a900ae6bfb6cd39869d521ec912c09fb7a345f6c.tar.bz2 |
re PR middle-end/39958 (OMP tasking creates invalid gimple)
PR middle-end/39958
* omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
for trees other than decls/types.
From-SVN: r147975
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 1a4aea9..e1fb723 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; } |