| commit | 83dafaf3db495f2a8e865055557d2179a58cf21e | [log] [tgz] |
|---|---|---|
| author | Daniel Jasper <djasper@google.com> | Tue Sep 18 14:17:42 2012 +0000 |
| committer | Daniel Jasper <djasper@google.com> | Tue Sep 18 14:17:42 2012 +0000 |
| tree | ad2391b32c6d6db390a836f2bd9d6152222afaae | |
| parent | be88f563bf6c7640ab1f74472d730e0fe71061b2 [diff] |
Fix isDerivedFrom matcher. Without this patch, the isDerivedFrom matcher asserts in the "assert(ClassDecl != NULL);" in the new test, as a DependentTemplateSpecilizationType is not a sub-type of TemplateSpecializationType and also does not offer getAsCXXRecordDecl(). I am not sure why this did not cause problems before. It is now (after the changed implementation of isDerivedFrom) easier to write a matcher that actually gets into this branch of the code. llvm-svn: 164127