Merge pull request #794 from ifilippov/master
Deleting print from 'safe_for_all_mask_off' functions
This commit is contained in:
5
ast.cpp
5
ast.cpp
@@ -389,6 +389,11 @@ lCheckAllOffSafety(ASTNode *node, void *data) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dynamic_cast<PrintStmt *>(node) != NULL) {
|
||||||
|
*okPtr = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (dynamic_cast<NewExpr *>(node) != NULL ||
|
if (dynamic_cast<NewExpr *>(node) != NULL ||
|
||||||
dynamic_cast<DeleteStmt *>(node) != NULL) {
|
dynamic_cast<DeleteStmt *>(node) != NULL) {
|
||||||
// We definitely don't want to run the uniform variants of these if
|
// We definitely don't want to run the uniform variants of these if
|
||||||
|
|||||||
Reference in New Issue
Block a user