Skip to content

Commit c345043

Browse files
authored
Merge pull request #14400 from dcci/ub-madness
2 parents 5e02d2a + 4ab738e commit c345043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Remote/MetadataReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,9 @@ class MetadataReader {
933933
sizeof(flags)))
934934
return nullptr;
935935

936-
unsigned baseSize;
936+
unsigned baseSize = 0;
937937
unsigned genericHeaderSize = sizeof(GenericContextDescriptorHeader);
938-
bool hasVTable;
938+
bool hasVTable = false;
939939
switch (auto kind = flags.getKind()) {
940940
case ContextDescriptorKind::Module:
941941
baseSize = sizeof(TargetModuleContextDescriptor<Runtime>);

0 commit comments

Comments
 (0)