CPP: Use DeleteOrDeleteArrayExpr in another place.

This commit is contained in:
Alex Eyers-Taylor
2023-08-25 13:56:24 +01:00
parent a3711e1df0
commit 417b9c9a32

View File

@@ -332,16 +332,7 @@ private Node getControlOrderChildSparse(Node n, int i) {
n = any(ConditionDeclExpr cd | i = 0 and result = cd.getInitializingExpr())
or
n =
any(DeleteExpr del |
i = 0 and result = del.getExpr()
or
i = 1 and result = del.getDestructorCall()
or
i = 2 and result = del.getDeallocatorCall()
)
or
n =
any(DeleteArrayExpr del |
any(DeleteOrDeleteArrayExpr del |
i = 0 and result = del.getExpr()
or
i = 1 and result = del.getDestructorCall()