diff options
author | Karthik Bhat <kv.bhat@samsung.com> | 2014-05-08 13:16:20 +0000 |
---|---|---|
committer | Karthik Bhat <kv.bhat@samsung.com> | 2014-05-08 13:16:20 +0000 |
commit | 967c13d3fbfaab8eb6cf803aa53036823328b19b (patch) | |
tree | edfd1efe6311ac4f5de6ab0fbf8d083c8681d854 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | |
parent | c47b0a1b99e74cab6f4c4aeb58ed3c5154a2d678 (diff) | |
download | bcm5719-llvm-967c13d3fbfaab8eb6cf803aa53036823328b19b.tar.gz bcm5719-llvm-967c13d3fbfaab8eb6cf803aa53036823328b19b.zip |
Fix PR19169 [Crash on invalid attempting to specialize a template method as a template variable].
A template declaration of a template name can be null in case we have a dependent name or a set of function templates.
Hence use dyn_cast_or_null instead of dyn_cast. Also improve the diagnostic emitted in this case.
llvm-svn: 208313
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
0 files changed, 0 insertions, 0 deletions