Skip to content

Commit

Permalink
Merge pull request #78 from BBasile/issue-77
Browse files Browse the repository at this point in the history
fix #77 - Crash due to #74
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
  • Loading branch information
dlang-bot authored Jun 2, 2018
2 parents e018446 + edfd17c commit b8c7663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsymbol/conversion/first.d
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ final class FirstPass : ASTVisitor

override void visit(const IfStatement ifs)
{
if (ifs.identifier != tok!"")
if (ifs.identifier != tok!"" && ifs.thenStatement)
{
pushScope(ifs.thenStatement.startLocation, ifs.thenStatement.endLocation);
scope(exit) popScope();
Expand Down

0 comments on commit b8c7663

Please sign in to comment.