From 0fbcd387f21c5f499ace5561cc9b59b8f2773193 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Mon, 1 Jun 2026 11:49:03 -0700 Subject: [PATCH] remove defensive null check --- compiler/src/dmd/blockexit.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dmd/blockexit.d b/compiler/src/dmd/blockexit.d index 6f619534d10d..052c0dbd3681 100644 --- a/compiler/src/dmd/blockexit.d +++ b/compiler/src/dmd/blockexit.d @@ -141,7 +141,7 @@ int blockExit(Statement s, FuncDeclaration func, ErrorSink eSink) if (sl && (!sl.hasCode() || sl.isErrorStatement())) { } - else if (func && func.getModule().filetype != FileType.c) + else if (func.getModule().filetype != FileType.c) { const(char)* gototype = s.isCaseStatement() ? "case" : "default"; // https://issues.dlang.org/show_bug.cgi?id=22999