Skip to content
Snippets Groups Projects
Commit 81de4037 authored by Richard Biener's avatar Richard Biener
Browse files

tree-optimization/107554 - fix ICE in stlen optimization


The following fixes a wrongly typed variable causing an ICE.

	PR tree-optimization/107554
	* tree-ssa-strlen.cc (strlen_pass::count_nonzero_bytes):
	Use unsigned HOST_WIDE_INT type for the strlen.

	* gcc.dg/pr107554.c: New testcase.

Co-Authored-By: default avatarNikita Voronov <nik_1357@mail.ru>
parent 4b3874d8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment