From ee443d8ddb1994acf581d485a195d96a80d0a9e9 Mon Sep 17 00:00:00 2001 From: Erik Eckstein Date: Mon, 12 Jun 2023 07:53:28 +0200 Subject: [PATCH] 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 --- include/swift/SIL/SILModule.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/swift/SIL/SILModule.h b/include/swift/SIL/SILModule.h index 3be26d4e5ba69..77a087b21a524 100644 --- a/include/swift/SIL/SILModule.h +++ b/include/swift/SIL/SILModule.h @@ -395,9 +395,7 @@ class SILModule { /// Action to be executed for serializing the SILModule. ActionCallback SerializeSILAction; -#ifndef NDEBUG BasicBlockNameMapType basicBlockNames; -#endif SILModule(llvm::PointerUnion context, Lowering::TypeConverter &TC, const SILOptions &Options,