stop processing if we substitute a unary op with a lead. closes #20
parent
7c9f272e15
commit
68850536e6
|
@ -3489,6 +3489,12 @@ UnaryOpNode::substituteUnaryOpNodes(DataTree &static_datatree, diff_table_t &nod
|
||||||
if (it == nodes.end())
|
if (it == nodes.end())
|
||||||
return buildSimilarUnaryOpNode(argsubst, datatree);
|
return buildSimilarUnaryOpNode(argsubst, datatree);
|
||||||
|
|
||||||
|
if (arg->maxLead() > 0)
|
||||||
|
{
|
||||||
|
cerr << "Cannot substitue unary operations that contain leads" << endl;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
string unary_op = "";
|
string unary_op = "";
|
||||||
switch (op_code)
|
switch (op_code)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue