Converting has_path into debug warning.

This commit is contained in:
Can Bölük 2020-08-23 11:12:37 +02:00
parent 3c3687636e
commit dd3d0d6946

View file

@ -333,8 +333,13 @@ namespace vtil
{
// Skip if it does not reach target.
//
#if _DEBUG
if ( !target->owner->has_path( it.block, target ) )
return enumerator::ocontinue;
{
warning( "Iterator %s has no path to %s but is still being considered in backpropagation.",
it, target->begin() );
}
#endif
// Increment path count.
//