(original) (raw)


On Mon, Mar 10, 2014 at 6:16 PM, Sean Callanan <scallanan@apple.com> wrote:
Chris,

this is a patch against top-of-tree. Maybe I wrote something wrong in the patch?

As Chris said, use\_iterator walks over the Use objects now, not over the User objects.

Sadly, a Use \*implicitly converts\* to the used value. IE, directly back to the Value you called 'use\_begin()' on. That is why this assert is firing. =\[

If you want to walk the Users which Use an object (rather than the Use nodes that connect them) use the newly minted Value::user\_iterator (or a range based for loop over GV.users()).