]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix ICE in kernels-decompose-pr100280-1.c testcase
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 10 May 2022 14:46:37 +0000 (15:46 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:30 +0000 (13:55 -0700)
commit2f7ab1a1fdedb4529c964f462cb6b108caf137ae
tree8870c52b179c372f9f5b925ad626ed73ac58123f
parent0ad06e951e9ae93ad039325e58a569e56b3c610d
Fix ICE in kernels-decompose-pr100280-1.c testcase

Check that there is a DECL_INITIAL associated with prev_stmt before using it.

2022-04-15  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/c-family/
* c-omp.cc (check_and_annotate_for_loop): Check that the DECL_INITIAL
is non-NULL before using.
gcc/c-family/ChangeLog.omp
gcc/c-family/c-omp.cc