Ensure at_stmt is defined before an early exit
authorAndrew Carlotti <andrew.carlotti@arm.com>
Thu, 6 Oct 2022 14:59:15 +0000 (15:59 +0100)
committerAndrew Carlotti <andrew.carlotti@arm.com>
Mon, 21 Nov 2022 15:59:21 +0000 (15:59 +0000)
commitf0e4f676aab589e53dbd67610378a1769030f462
treeef4c7ac20342bd01946b3d8838499db8b546557b
parent9df85f331fa78ddfdbbe3b0fd5ff3727d2f57333
Ensure at_stmt is defined before an early exit

This prevents a null dereference error when outputing debug information
following an early exit from number_of_iterations_exit_assumptions.

gcc/ChangeLog:

* tree-ssa-loop-niter.cc (number_of_iterations_exit_assumptions):
Move at_stmt assignment.
gcc/tree-ssa-loop-niter.cc