diff options
| author | Yong He <yonghe@outlook.com> | 2023-10-05 17:05:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-05 17:05:20 -0700 |
| commit | 4547125ce945140dc10542e9606b225dd06159b8 (patch) | |
| tree | 0c7df4b3d97143eb2dc78c68593269dac5cb5abf /source/slang/slang-parser.cpp | |
| parent | 441e13e13f30b96eb04c05725ad7fe1983c92f53 (diff) | |
Add intellisense support for spirv_asm blocks. (#3264)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 517ab9e10..54b93a1ef 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -6468,7 +6468,6 @@ namespace Slang Diagnostics::spirvInstructionWithoutResultTypeId, ret.opcode.token ); - return std::nullopt; } // @@ -6519,9 +6518,10 @@ namespace Slang ret.operands.add(*operand); } else - return std::nullopt; + { + break; + } } - return ret; } @@ -6552,7 +6552,7 @@ namespace Slang } parser->ReadMatchingToken(TokenType::RBrace); - return failed ? nullptr : asmExpr; + return asmExpr; } static Expr* parsePrefixExpr(Parser* parser) |
