Skip to content

Commit 96eb6ea

Browse files
authored
Merge pull request #8606 from adrian-prantl/31482203-1
2 parents 8e77ea7 + f5d41fb commit 96eb6ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,11 @@ void IRGenDebugInfo::emitVariableDeclaration(
895895
if (Opts.DebugInfoKind <= IRGenDebugInfoKind::LineTables)
896896
return;
897897

898+
// Currently, the DeclContext is needed to mangle archetypes. Bail out if it's
899+
// missing.
900+
if (DbgTy.Type->hasArchetype() && !DbgTy.DeclCtx)
901+
return;
902+
898903
if (!DbgTy.size)
899904
DbgTy.size = getStorageSize(IGM.DataLayout, Storage);
900905

0 commit comments

Comments
 (0)