From 4f3b7364a4595a547b246d00f07e38630bf2cf97 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 17 Jun 2019 19:40:52 +0000 Subject: 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 --- clang/lib/CodeGen/CGDebugInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') 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(V)) continue; + if (isa(V)) + continue; + // Reuse the existing static member declaration if one exists auto MI = StaticDataMemberCache.find(V->getCanonicalDecl()); if (MI != StaticDataMemberCache.end()) { -- cgit v1.2.3