Skip to content

Commit badb9d9

Browse files
committed
fix: case label skips variable with non-vacuous initialization
1 parent 0244055 commit badb9d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/AST/AnyBlock.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ class NameInfoBlock
11431143
switch(ID)
11441144
{
11451145
case NAME_INFO_KIND:
1146+
{
11461147
NameKind kind{};
11471148
if(auto err = decodeRecord(R, kind, Blob))
11481149
return err;
@@ -1151,6 +1152,7 @@ class NameInfoBlock
11511152
else
11521153
I = std::make_unique<NameInfo>();
11531154
return Error::success();
1155+
}
11541156
case NAME_INFO_ID:
11551157
return decodeRecord(R, I->id, Blob);
11561158
case NAME_INFO_NAME:

0 commit comments

Comments
 (0)