summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/parse.cxx b/parse.cxx
index f99a440b..79784490 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1289,11 +1289,7 @@ parser::parse_statement ()
statement *ret;
const token* t = peek ();
if (t && t->type == tok_operator && t->content == ";")
- {
- null_statement* n = new null_statement ();
- n->tok = next ();
- return n;
- }
+ return new null_statement (next ());
else if (t && t->type == tok_operator && t->content == "{")
return parse_stmt_block (); // Don't squash semicolons.
else if (t && t->type == tok_keyword && t->content == "if")