diff options
author | Daniel Jasper <djasper@google.com> | 2012-09-18 14:17:42 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-09-18 14:17:42 +0000 |
commit | 83dafaf3db495f2a8e865055557d2179a58cf21e (patch) | |
tree | ad2391b32c6d6db390a836f2bd9d6152222afaae /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | be88f563bf6c7640ab1f74472d730e0fe71061b2 (diff) | |
download | bcm5719-llvm-83dafaf3db495f2a8e865055557d2179a58cf21e.tar.gz bcm5719-llvm-83dafaf3db495f2a8e865055557d2179a58cf21e.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions