diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-26 19:59:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 19:59:55 -0700 |
| commit | c37e3ee2a8523eea8873d77c3614ac963566921b (patch) | |
| tree | f972cc2dc114555abb4bfc5c73e45896c6d62188 /source | |
| parent | dfdf243f07c977fa59b1a5968ce053bf590f8120 (diff) | |
Fix parsing issue around __transparent_block. (#3842)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 5b8a1af4f..b99df18e4 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -3572,7 +3572,7 @@ namespace Slang if (parser->currentScope && parser->currentScope->containerDecl) { parseDeclBody(parser, parser->currentScope->containerDecl); - return nullptr; + return parser->astBuilder->create<EmptyDecl>(); } else { |
