Skip to content

Commit ee443d8

Browse files
committed
fix an assert-nonassert mismatch in SILModule
Data structures must be layout compatible when built with and without asserts. Fixes a compiler crash when C++ sources are built without asserts because SwiftCompilerSources are built with asserts. rdar://110363377
1 parent bcb01ce commit ee443d8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/swift/SIL/SILModule.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ class SILModule {
395395
/// Action to be executed for serializing the SILModule.
396396
ActionCallback SerializeSILAction;
397397

398-
#ifndef NDEBUG
399398
BasicBlockNameMapType basicBlockNames;
400-
#endif
401399

402400
SILModule(llvm::PointerUnion<FileUnit *, ModuleDecl *> context,
403401
Lowering::TypeConverter &TC, const SILOptions &Options,

0 commit comments

Comments
 (0)