deleting print from 'safe_for_all_mask_off' functions

This commit is contained in:
Ilia Filippov
2014-05-27 19:24:21 +04:00
parent e6131bd6a9
commit 2b064b272a

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