commit | 5f574bf631e973546f6f2c4484cb8ca6480b91d5 | [log] [tgz] |
---|---|---|
author | Manuel Klimek <klimek@google.com> | Tue Jul 16 13:20:30 2013 +0000 |
committer | Manuel Klimek <klimek@google.com> | Tue Jul 16 13:20:30 2013 +0000 |
tree | d02d18df7bb34f1e89c1be9298a5a4f8dfc78405 | |
parent | e7d3bff31e3ef4fea1e2a5a7cd5441b6b0752e3f [diff] |
Fixes another hard to test problem with iterator invalidation. As every match call can recursively call back into the memoized match via a nested traversal matcher (for example: stmt(hasAncestor(stmt(hasDescendant(stmt(hasDescendant(stmt()))))))), and every memoization step might clear the cache, we must not store iterators into the result cache when calling match on a submatcher. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186411 91177308-0d34-0410-b5e6-96231b3b80d8