This is split out of D140908 as suggested.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm
llvm/include/llvm/Analysis/MemoryProfileInfo.h | ||
---|---|---|
145 | nit: I prefer the prior version with an early check since it's easier to read than a nested ternary. if (!N) { Iter = nullptr; return; } Iter = End ? N->StackIdIndices.end() : N->StackIdIndices.begin(); Also writing it out made it clear that the change in this diff is ensuring that Iter is initialized to nullptr. |
nit: I prefer the prior version with an early check since it's easier to read than a nested ternary.
Also writing it out made it clear that the change in this diff is ensuring that Iter is initialized to nullptr.