summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2010-02-23 20:38:56 -0500
committerFrank Ch. Eigler <fche@elastic.org>2010-02-23 20:38:56 -0500
commitc7005ee1ba902de01a8863661a2031bfd45d3d40 (patch)
treee8a7bfa55c9afcfac71b5aafa5b54256f356c81a /parse.cxx
parent30263a7389d5c2712536b74656193708bbc64d49 (diff)
parent10328bcf86d49e5de83c5b22890204b5874740a9 (diff)
downloadsystemtap-steved-c7005ee1ba902de01a8863661a2031bfd45d3d40.tar.gz
systemtap-steved-c7005ee1ba902de01a8863661a2031bfd45d3d40.tar.xz
systemtap-steved-c7005ee1ba902de01a8863661a2031bfd45d3d40.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap: PR10719 part 1: Partial constant folding Simplify null_statement construction Fixed PR 11269 by properly handling mmap syscall 'fd' argument. Removed rvalue operator check. PR 10690 (partial fix). Handle '.=' operator in procfs probes. Conflicts: tapsets.h
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 b867f98d..b2daa178 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")