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 | c52c190c1e790317e6448902fbf08511fb6c1789 (patch) | |
| tree | 16e6e4821b1dd6695d4c1e7a5def183c336a5082 /lib/CodeGen/CGExpr.cpp | |
| parent | 2d4fcb889809ede7c322081a15b4b088231589ff (diff) | |
| download | clang-c52c190c1e790317e6448902fbf08511fb6c1789.tar.gz clang-c52c190c1e790317e6448902fbf08511fb6c1789.tar.bz2 clang-c52c190c1e790317e6448902fbf08511fb6c1789.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
