commit | 11c98771ba5d7fb1ec5707f9e1c77a6cf65bbc59 | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Sun Nov 11 22:14:55 2012 +0000 |
committer | Daniel Jasper <djasper@google.com> | Sun Nov 11 22:14:55 2012 +0000 |
tree | a6c4d9ce6e92f481bef20e25d1785f913bd8754b | |
parent | 18f236886b02e999bea6ceff3aa90951198007cb [diff] |
Fix binding of nodes in case of forEach..() matchers. When recursively visiting the generated matches, the aggregated bindings need to be copied during the recursion. Otherwise, we they might not be properly overwritten (which is shown by the test), or there might be bound nodes present that were bound on a different matching branch. Review: http://llvm-reviews.chandlerc.com/D112 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167695 91177308-0d34-0410-b5e6-96231b3b80d8