diff options
author | Daniel Jasper <djasper@google.com> | 2012-11-11 22:14:55 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-11-11 22:14:55 +0000 |
commit | 11c98771ba5d7fb1ec5707f9e1c77a6cf65bbc59 (patch) | |
tree | a6c4d9ce6e92f481bef20e25d1785f913bd8754b /lib/Basic/Targets.cpp | |
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
Diffstat (limited to 'lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions