#6122 segmentation fault (invalid code) in in valueFlowForLoop2. Simple fix and testcase.