Fix issue #2937 (DI scope for types in static foreach in mixin templates) (#2939)

This commit is contained in:
Martin Kinkelin 2018-12-16 13:41:18 +01:00 committed by GitHub
parent c7d7894045
commit d4858cfbcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View file

@ -135,6 +135,8 @@ DIScope DIBuilder::GetSymbolScope(Dsymbol *s) {
return EmitSubProgram(fd);
} else if (auto ns = parent->isNspace()) {
return EmitNamespace(ns, ns->toChars());
} else if (auto fwd = parent->isForwardingScopeDsymbol()) {
return GetSymbolScope(fwd);
}
llvm_unreachable("Unhandled parent");