Fix a possible endless loop in ir_values_overlap

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-16 16:38:36 +02:00
parent 1bc6d10898
commit 32c095b622

2
ir.c
View file

@ -977,7 +977,7 @@ bool ir_values_overlap(const ir_value *a, const ir_value *b)
if (++la == enda) if (++la == enda)
break; break;
} }
else if (lb->start < la->start) else /* if (lb->start < la->start) actually <= */
{ {
/* order: B A, move B forward /* order: B A, move B forward
* check if we hit the end with B * check if we hit the end with B