~ubuntu-branches/ubuntu/saucy/verilator/saucy-proposed

« back to all changes in this revision

Viewing changes to src/V3Begin.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2013-02-10 17:14:43 UTC
  • mfrom: (1.2.17)
  • Revision ID: package-import@ubuntu.com-20130210171443-58ibaqe3eq5uitns
Tags: 3.845-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        AstNode* addsp = NULL;
154
154
        if (AstNode* stmtsp = nodep->stmtsp()) {
155
155
            stmtsp->unlinkFrBackWithNext();
156
 
            addsp = addsp->addNextNull(stmtsp);
 
156
            if (addsp) { addsp = addsp->addNextNull(stmtsp); } else { addsp = stmtsp; }
157
157
        }
158
158
        if (addsp) {
159
159
            nodep->replaceWith(addsp);