This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
38".
Add an assertion, since it's unlikely that this parameter is nullptr.
Differential D62229
[TargetTransformInfo] assert on nullptr nickdesaulniers on May 21 2019, 7:11 PM. Authored by
Details This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No. Add an assertion, since it's unlikely that this parameter is nullptr.
Diff Detail
Event TimelineComment Actions I am pretty sure from the uses of getGEPCost that Ptr should never be null. It is also used without check later on. I think it would be better to drop the if (Ptr != nullptr) check. This comment was removed by nickdesaulniers. |
assert for a non-null PointeeType as well ?