This loop in the constraint solver won't terminate when given ill-formed code involving circular inheritance. Make it terminate. Fixes rdar://problem/54296278.