From 37143802781d8d480361d7c23202347ae3acf094 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 14 Jul 2025 18:51:57 -0700 Subject: Fix language server crash. (#7756) * Fix language server crash. * Fix tests. * Fix. * Revert changes. --- source/slang/slang-check-decl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/slang/slang-check-decl.cpp') diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index e67962ca3..584b1f081 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -9672,9 +9672,8 @@ void SemanticsVisitor::checkForRedeclaration(Decl* decl) // Sanity check: there should always be a parent declaration. // - SLANG_ASSERT(parentDecl); if (!parentDecl) - return; + SLANG_ABORT_COMPILATION("decl has no parent."); // If the declaration is the "inner" declaration of a generic, // then we actually want to look one level up, because the -- cgit v1.2.3