commit | 92e6c942c525ae7f3a6ec493fc8a487c42d02881 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Aug 18 17:58:09 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Aug 18 17:58:09 2016 +0000 |
tree | 36db98990b636ad8d892ccf73e78c7b2716e915f | |
parent | 8970377ddc28a99f02b0801c38cc8e47e204da21 [diff] |
AArch64: Don't call getIterator() on iterators Remove an unnecessary round-trip: iterator => operator->() => getIterator() In some cases, the iterator is end(), so the dereference of operator-> is invalid (UB). The testcase only crashes with r278974 (currently reverted to investigate this), which adds an assertion for invalid dereferences of ilist nodes. Fixes PR29035. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279104 91177308-0d34-0410-b5e6-96231b3b80d8