| 29 | } |
| 30 | |
| 31 | bool isExpressionNull(ExpressionPtr expr) { |
| 32 | if (expr->rtti_isConstant() && expr->type->isPointer()) { |
| 33 | auto cptr = static_cast<ExprConstPtr*>(expr); |
| 34 | return cptr->getValue() == nullptr; |
| 35 | } |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | #define VERIFY_GENERATED 0 |
| 40 | #define LOG_GENERATED 0 |