summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index 398aab517..431cf6669 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -6124,11 +6124,6 @@ Stmt* Parser::parseIfLetStatement()
tempVarDecl->nameAndLoc = NameLoc(getName(this, "$OptVar"), identifierToken.loc);
tempVarDecl->initExpr = initExpr;
AddMember(currentScope->containerDecl, tempVarDecl);
- if (semanticsVisitor)
- semanticsVisitor->ensureDecl(
- (Decl*)tempVarDecl,
- DeclCheckState::DefinitionChecked,
- nullptr);
DeclStmt* tmpVarDeclStmt = astBuilder->create<DeclStmt>();
FillPosition(tmpVarDeclStmt);