Skip to content

Commit 928e73e

Browse files
committed
Fix uninitialized IRGenOptions field
#42094 added a new `IRGenOptions::CompactAbsoluteFunctionPointer` field, but did not initialize it. We subsequently started seeing flaky test failures in LLDB tests that tried to resolve relocations in metadata, so we think this may have resulted in the option sometimes being set to `true` in the REPL.
1 parent 81d211f commit 928e73e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/IRGenOptions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ class IRGenOptions {
446446
EnableReflectionNames(true), EnableAnonymousContextMangledNames(false),
447447
ForcePublicLinkage(false), LazyInitializeClassMetadata(false),
448448
LazyInitializeProtocolConformances(false),
449-
IndirectAsyncFunctionPointer(false), DisableLegacyTypeInfo(false),
449+
IndirectAsyncFunctionPointer(false),
450+
CompactAbsoluteFunctionPointer(false), DisableLegacyTypeInfo(false),
450451
PrespecializeGenericMetadata(false), UseIncrementalLLVMCodeGen(true),
451452
UseTypeLayoutValueHandling(true), ForceStructTypeLayouts(false),
452453
GenerateProfile(false), EnableDynamicReplacementChaining(false),

0 commit comments

Comments
 (0)