[LLVMdev] GlobalValues appear in their own use lists?
Sean Callanan
scallanan at apple.com
Tue Mar 11 09:25:34 PDT 2014
Ohhh, I see!
Thanks Chandler and Chris, that makes more sense now. All I have to do, then, is fix some of LLDB’s logic that is now using the implicit conversion.
Sean
On Mar 10, 2014, at 6:23 PM, Chandler Carruth <chandlerc at google.com> wrote:
>
> On Mon, Mar 10, 2014 at 6:16 PM, Sean Callanan <scallanan at 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()).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140311/e8f5983b/attachment.html>
More information about the llvm-dev
mailing list