Fix some constant parameter functions causing crash, bug253.

This commit is contained in:
Wilson Snyder
2010-05-25 19:37:45 -04:00
parent 9a382c572c
commit 06967c0c46
5 changed files with 82 additions and 3 deletions
+1
View File
@@ -1034,6 +1034,7 @@ private:
AstNodeFTask* funcp = nodep->taskp();
if (!funcp) nodep->v3fatalSrc("unlinked");
if (!funcp->isFunction()) nodep->v3fatalSrc("func reference to non-function");
if (!m_scopep) nodep->v3fatalSrc("func ref not under scope");
// Inline func refs in the function
iterateIntoFTask(funcp);
// Create output variable