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
This commit is contained in:
Erik Eckstein
2023-06-12 07:53:28 +02:00
parent bcb01ce659
commit ee443d8ddb

View File

@@ -395,9 +395,7 @@ private:
/// Action to be executed for serializing the SILModule.
ActionCallback SerializeSILAction;
#ifndef NDEBUG
BasicBlockNameMapType basicBlockNames;
#endif
SILModule(llvm::PointerUnion<FileUnit *, ModuleDecl *> context,
Lowering::TypeConverter &TC, const SILOptions &Options,