commit | d6b44aad313c3d3dbb1f0749301eb79e8a9ba32c | [log] [tgz] |
---|---|---|
author | Samuel Benzaquen <sbenza@google.com> | Tue Apr 19 15:52:56 2016 +0000 |
committer | Samuel Benzaquen <sbenza@google.com> | Tue Apr 19 15:52:56 2016 +0000 |
tree | c1481677f4c89f8b7199ad0a9ca78723cdd13040 | |
parent | bbfd5566401962352bd26085b73f1e445e68a0d8 [diff] |
[ASTMatchers] Do not try to memoize nodes we can't compare. Summary: Prevent hasAncestor from comparing nodes that are not supported. hasDescendant was fixed some time ago to avoid this problem. I'm applying the same fix to hasAncestor: if any object in the Builder map is not comparable, skip the cache. Reviewers: alexfh Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D19231 llvm-svn: 266748