Skip to content

Commit

Permalink
minor fix in if
Browse files Browse the repository at this point in the history
  • Loading branch information
PATH242 committed May 11, 2023
1 parent ef3c6b3 commit f8959aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code_generator/codeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,8 @@ namespace generator
{
builder->SetInsertPoint(thenBlock);
node->then->accept(this);
if (!node->else_)
{
builder->CreateBr(endBlock);
builder->GetInsertBlock();
}
builder->CreateBr(endBlock);
builder->GetInsertBlock();
}
builder->SetInsertPoint(elseBlock);
if (node->else_)
Expand Down

0 comments on commit f8959aa

Please sign in to comment.