From 1146920bc9ed9bef2b5bb91b3cdec4700eb09881 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 8 Jun 2022 11:54:27 -0700 Subject: Add smoke test for language server. (#2266) --- source/slang/slang-check-modifier.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-check-modifier.cpp') diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index 1d9e30c95..176609106 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -80,6 +80,8 @@ namespace Slang AttributeDecl* SemanticsVisitor::lookUpAttributeDecl(Name* attributeName, Scope* scope) { + if (!attributeName) + return nullptr; // We start by looking for an existing attribute matching // the name `attributeName`. // -- cgit v1.2.3