]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Fix for ICE in tree-nested.cc.
authorSandra Loosemore <sloosemore@baylibre.com>
Mon, 22 Apr 2024 18:24:25 +0000 (18:24 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Mon, 6 May 2024 14:37:14 +0000 (14:37 +0000)
commit80c03ac8041340b29325f86ed58ea8bd40a55b99
tree5f06828766c07405c32976cbd8fa98f1dc86719c
parent7c469a9fc785505dc350aba60311812c2bb0c1b5
OpenMP: Fix for ICE in tree-nested.cc.

Use gimple_omp_target_clauses() instead of gimple_omp_taskreg_clauses()
when stmt is GIMPLE_OMP_TARGET, to avoid an as_a<> ICE.  The code
immediately following this is already conditionalized in the same way.

gcc/ChangeLog
* tree-nested.cc (convert_tramp_reference_stmt): Use the correct
accessor for GIMPLE_OMP_TARGET clauses.
gcc/tree-nested.cc