Merge pull request #794 from ifilippov/master

Deleting print from 'safe_for_all_mask_off' functions
This commit is contained in:
Dmitry Babokin
2014-05-27 19:34:48 +04:00

View File

@@ -389,6 +389,11 @@ lCheckAllOffSafety(ASTNode *node, void *data) {
return false;
}
if (dynamic_cast<PrintStmt *>(node) != NULL) {
*okPtr = false;
return false;
}
if (dynamic_cast<NewExpr *>(node) != NULL ||
dynamic_cast<DeleteStmt *>(node) != NULL) {
// We definitely don't want to run the uniform variants of these if