commit | c6acb5115ab975ed4b82a1c4ccf03901843ac702 | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Mon Oct 31 17:20:43 2016 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Mon Oct 31 17:20:43 2016 +0000 |
tree | 6bc44f5035ce8b5077a9dbc06f66579697720c5e | |
parent | 09c7eaaf0eacff7b721e247b6dcd530c1e34febd [diff] |
SingleLinkedListIterator::operator++(int) shouldn't return a reference The returned reference is to a local object. Instead, make a copy. Found by PVS-Studio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285603 91177308-0d34-0410-b5e6-96231b3b80d8