summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp3
1 files changed, 1 insertions, 2 deletions
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