The IV widening code currently asserts that terminators aren't SCEVable -- however, this is not the case for invokes with a returned attribute.
As far as I can tell, this assertions is not necessary -- even if we have a critical edge (the second test case), the trunc gets inserted in a legal position. Though I would be happy to instead bail out for the terminator case, as it's something of an edge case, and I don't think the transform is profitable for it anyway.