Skip to content

Commit 5925362

Browse files
committed
Compiler/Transformer: Remove scoping around ConditionalStatement
1 parent 32b891d commit 5925362

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/NZSL/Ast/Transformations/Transformer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ namespace nzsl::Ast
375375
FinishExpressionHandling();
376376
}
377377

378-
PushScope();
379378
if (!m_flags.Test(TransformerFlag::TransformDisabled) && node.condition->GetType() == NodeType::ConstantValueExpression)
380379
{
381380
auto& constantVal = static_cast<ConstantValueExpression&>(*node.condition);
@@ -384,7 +383,6 @@ namespace nzsl::Ast
384383
}
385384

386385
HandleStatement(node.statement);
387-
PopScope();
388386
}
389387

390388
void Transformer::HandleChildren(ContinueStatement& /*node*/)

0 commit comments

Comments
 (0)