diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-18 17:58:09 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-18 17:58:09 +0000 |
commit | 84c2da47f9bbe2e9fb61b3ba28c5bb3039f40c7d (patch) | |
tree | 504879ee4dae774f73dad5f7f93a516aa78bc31d /clang/unittests/libclang/LibclangTest.cpp | |
parent | 61a72d88506cbb0b7067bb8176028fe61700b5ed (diff) | |
download | llvm-84c2da47f9bbe2e9fb61b3ba28c5bb3039f40c7d.zip llvm-84c2da47f9bbe2e9fb61b3ba28c5bb3039f40c7d.tar.gz llvm-84c2da47f9bbe2e9fb61b3ba28c5bb3039f40c7d.tar.bz2 |
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.
llvm-svn: 279104
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions