diff options
author | David Blaikie <dblaikie@gmail.com> | 2019-06-17 19:40:52 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2019-06-17 19:40:52 +0000 |
commit | 4f3b7364a4595a547b246d00f07e38630bf2cf97 (patch) | |
tree | d971867f6007a07278dc70c0f93f4caa37cc6161 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 15722626e3299e92683be26e2f07dd5127931f49 (diff) | |
download | bcm5719-llvm-4f3b7364a4595a547b246d00f07e38630bf2cf97.tar.gz bcm5719-llvm-4f3b7364a4595a547b246d00f07e38630bf2cf97.zip |
PR42205: DebugInfio: Do not attempt to emit debug info metadata for static member variable template partial specializations
Would cause a crash in an attempt to create the type for the still
unresolved 'auto' in the partial specialization (& even without the use
of 'auto', the expression would be value dependent &
crash/assertion-fail there).
llvm-svn: 363606
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index af9bac9b388..a53ca8f5243 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1410,6 +1410,9 @@ void CGDebugInfo::CollectRecordFields( isa<VarTemplateSpecializationDecl>(V)) continue; + if (isa<VarTemplatePartialSpecializationDecl>(V)) + continue; + // Reuse the existing static member declaration if one exists auto MI = StaticDataMemberCache.find(V->getCanonicalDecl()); if (MI != StaticDataMemberCache.end()) { |