summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2015-01-02 01:33:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2015-01-02 01:33:12 +0000
commit0b72773c8af2761d3c63918ed83abf434b38bc53 (patch)
treedcdd0c441e46bece7138504700702a425f1b48a1 /llvm/utils/TableGen/X86RecognizableInstr.cpp
parente65ae8932716dddb9d8abd72b60bfbc581b1022e (diff)
downloadbcm5719-llvm-0b72773c8af2761d3c63918ed83abf434b38bc53.tar.gz
bcm5719-llvm-0b72773c8af2761d3c63918ed83abf434b38bc53.zip
Instantiation of a CXXMethodDecl may fail when the parameter type cannot be instantiated. Do not crash in this case. Fixes PR22040!
The FIXME in the test is caused by TemplateDeclInstantiator::VisitCXXRecordDecl returning a nullptr instead of creating an invalid decl. This is a common pattern across all of TemplateDeclInstantiator, so I'm not comfortable changing it. The reason it's not invalid in the class template is due to support for an MSVC extension, see r137573. llvm-svn: 225071
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud