diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-10-12 01:53:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-11 10:53:00 -0700 |
| commit | 459572c36df1aefc5c80ee04e460efbd5c307f4a (patch) | |
| tree | 388315dc422c34a9fcc9e045f6d2a163810421ba /source/slang/slang-parser.cpp | |
| parent | 61132c7e198fe372fc739ba0a1edbc8efef386d2 (diff) | |
Small warnings and bugs (#3272)
* Correctly use removeTrivialSingleIterationLoops during simplification
* remove unused variables
* Fix invalid fallthrough
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-parser.cpp')
| -rw-r--r-- | source/slang/slang-parser.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 54b93a1ef..696575f8b 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -6530,7 +6530,6 @@ namespace Slang SPIRVAsmExpr* asmExpr = parser->astBuilder->create<SPIRVAsmExpr>(); parser->ReadToken(TokenType::LBrace); - bool failed = false; while(!parser->tokenReader.isAtEnd()) { if(parser->LookAheadToken(TokenType::RBrace)) @@ -6539,7 +6538,6 @@ namespace Slang asmExpr->insts.add(*inst); else { - failed = true; // Recover to the semi or brace while(!(parser->LookAheadToken(TokenType::Semicolon) || parser->LookAheadToken(TokenType::RBrace) |
