commit | d73d33fedf5dd5ad2b6a34eef0afa24a8cebe84e | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Sun Feb 21 20:14:29 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Sun Feb 21 20:14:29 2016 +0000 |
tree | b579ceda6de389d350dbe2eeeb9d67ff8a6c0e03 | |
parent | 14147eda61bcd56fefb629faebe79d4bd8607a55 [diff] |
TransformUtils: Avoid getNodePtrUnchecked() in integer division, NFC Stop relying on `getNodePtrUnchecked()` being useful on invalid iterators. This function is documented to be for internal use only, and the pointer type will eventually have to change to remove UB from ilist_iterator. Instead, check the iterator before it has been invalidated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261497 91177308-0d34-0410-b5e6-96231b3b80d8