Comparison against null is a common pattern that usually is followed by
error handling code and the likes. We now use AANonNull to simplify
these comparisons optimistically in order to make more code dead early
on.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think the logic is correct, other people might want to check too.
Maybe we want to add more comments, it doesn't seem obvious what's happening here.
Comment Actions
I think the logic is correct too and we need comments for this.
IMHO, putting the conditional into helper function would improve readability.
Comment Actions
FWIW, I moved the logic in a helper and added comments. Feel free to let me know if there is anything else :)