diff --git a/lib/SILGen/SILGenApply.cpp b/lib/SILGen/SILGenApply.cpp index f07e7db9467c..553a9a97d6af 100644 --- a/lib/SILGen/SILGenApply.cpp +++ b/lib/SILGen/SILGenApply.cpp @@ -6920,6 +6920,7 @@ RValue SILGenFunction::emitApplyAllocatingInitializer(SILLocation loc, PreparedArguments &&args, Type overriddenSelfType, SGFContext C) { + ASSERT(init); ConstructorDecl *ctor = cast(init.getDecl()); // Form the reference to the allocating initializer.