| 4649 | return false; |
| 4650 | } |
| 4651 | void AddIfNode(const char* pos) |
| 4652 | { |
| 4653 | CodeInfo::lastKnownStartPos = pos; |
| 4654 | assert(CodeInfo::nodeList.size() >= 2); |
| 4655 | |
| 4656 | if(OptimizeIfElse(false)) |
| 4657 | return; |
| 4658 | |
| 4659 | NodeZeroOP *body = CodeInfo::nodeList.back(); |
| 4660 | CodeInfo::nodeList.pop_back(); |
| 4661 | |
| 4662 | if(CodeInfo::nodeList.back()->typeInfo->type == TypeInfo::TYPE_COMPLEX && CodeInfo::nodeList.back()->typeInfo != typeObject) |
| 4663 | AddFunctionCallNode(pos, "bool", 1, true); |
| 4664 | |
| 4665 | CodeInfo::nodeList.push_back(body); |
| 4666 | |
| 4667 | CodeInfo::nodeList.push_back(new NodeIfElseExpr(false)); |
| 4668 | CodeInfo::nodeList.back()->SetCodeInfo(pos); |
| 4669 | } |
| 4670 | void AddIfElseNode(const char* pos) |
| 4671 | { |
| 4672 | CodeInfo::lastKnownStartPos = pos; |
no test coverage detected