Fix string formats under deep expressions, bug820.
This commit is contained in:
parent
6e476255ca
commit
c86fec5307
2
Changes
2
Changes
|
|
@ -25,6 +25,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||
|
||||
**** Fix clang warnings, bug818. [Iztok Jeras]
|
||||
|
||||
**** Fix string formats under deep expressions, bug820. [Iztok Jeras]
|
||||
|
||||
|
||||
* Verilator 3.862 2014-06-10
|
||||
|
||||
|
|
|
|||
|
|
@ -2224,13 +2224,13 @@ public:
|
|||
void filep(AstNodeVarRef* nodep) { setNOp3p(nodep); }
|
||||
};
|
||||
|
||||
class AstSFormat : public AstNode {
|
||||
class AstSFormat : public AstNodeStmt {
|
||||
// Parents: statement container
|
||||
// Children: string to load
|
||||
// Children: SFORMATF to generate print string
|
||||
public:
|
||||
AstSFormat(FileLine* fileline, AstNode* lhsp, const string& text, AstNode* exprsp)
|
||||
: AstNode (fileline) {
|
||||
: AstNodeStmt (fileline) {
|
||||
setOp1p(new AstSFormatF(fileline,text,true,exprsp));
|
||||
setOp3p(lhsp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,11 +170,13 @@ private:
|
|||
m_inWhilep->addPrecondsp(newp);
|
||||
} else if (m_inTracep) {
|
||||
m_inTracep->addPrecondsp(newp);
|
||||
} else {
|
||||
} else if (m_stmtp) {
|
||||
AstNRelinker linker;
|
||||
m_stmtp->unlinkFrBack(&linker);
|
||||
newp->addNext(m_stmtp);
|
||||
linker.relink(newp);
|
||||
} else {
|
||||
newp->v3fatalSrc("No statement insertion point.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue