File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -537,10 +537,10 @@ void IRGenModule::emitRuntimeRegistration() {
537
537
SILFunction *EntryPoint =
538
538
getSILModule ().lookUpFunction (SWIFT_ENTRY_POINT_FUNCTION);
539
539
540
- // If we're debugging, we probably don't have a main. Find a
541
- // function marked with the LLDBDebuggerFunction attribute instead.
542
- if (Context. LangOpts . DebuggerSupport ) {
543
- assert (!EntryPoint && " unexpected main " );
540
+ // If we're debugging (and not in the REPL) , we don't have a
541
+ // main. Find a function marked with the LLDBDebuggerFunction
542
+ // attribute instead.
543
+ if (!EntryPoint && Context. LangOpts . DebuggerSupport ) {
544
544
for (SILFunction &SF : getSILModule ()) {
545
545
if (SF.hasLocation ()) {
546
546
if (Decl* D = SF.getLocation ().getAsASTNode <Decl>()) {
You can’t perform that action at this time.
0 commit comments