Skip to content

Commit

Permalink
fix: don't lookup bases that use SymbolID::zero
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Jun 23, 2023
1 parent 13d2513 commit bf5ffde
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/Metadata/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ class Interface::Build
for(auto const& B : From.Bases)
{
auto actualAccess = effectiveAccess(access, B.Access);
if( ! includePrivate_ &&
actualAccess == AccessKind::Private)
continue;
// VFALCO temporary hack to avoid looking up IDs
// which for metadata that is not emitted.
if(! corpus_.find(B.Type.id))
if(B.Type.id == SymbolID::zero ||
! corpus_.find(B.Type.id))
continue;
if( includePrivate_ ||
actualAccess != AccessKind::Private)
{
append(actualAccess,
corpus_.get<RecordInfo>(B.Type.id));
}
append(actualAccess,
corpus_.get<RecordInfo>(B.Type.id));
}

for(auto const& id : From.Members)
Expand Down

0 comments on commit bf5ffde

Please sign in to comment.