Skip to content

Commit

Permalink
fix: case label skips variable with non-vacuous initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Dec 13, 2023
1 parent 0244055 commit badb9d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/AST/AnyBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,7 @@ class NameInfoBlock
switch(ID)
{
case NAME_INFO_KIND:
{
NameKind kind{};
if(auto err = decodeRecord(R, kind, Blob))
return err;
Expand All @@ -1151,6 +1152,7 @@ class NameInfoBlock
else
I = std::make_unique<NameInfo>();
return Error::success();
}
case NAME_INFO_ID:
return decodeRecord(R, I->id, Blob);
case NAME_INFO_NAME:
Expand Down

0 comments on commit badb9d9

Please sign in to comment.