diff --git a/cpp/downgrades/23f7cbb88a4eb29f30c3490363dc201bc054c5ff/exprs.ql b/cpp/downgrades/23f7cbb88a4eb29f30c3490363dc201bc054c5ff/exprs.ql index d00685e7cc6..4ca15d23b07 100644 --- a/cpp/downgrades/23f7cbb88a4eb29f30c3490363dc201bc054c5ff/exprs.ql +++ b/cpp/downgrades/23f7cbb88a4eb29f30c3490363dc201bc054c5ff/exprs.ql @@ -13,5 +13,5 @@ predicate isExprWithNewBuiltin(Expr expr) { from Expr expr, int kind, int kind_new, Location location where exprs(expr, kind, location) and - if isExprWithNewBuiltin(expr) then kind_new = 0 else kind_new = kind + if isExprWithNewBuiltin(expr) then kind_new = 1 else kind_new = kind select expr, kind_new, location diff --git a/cpp/downgrades/73af5058c6899dcdb05754c27ca966aeb3a68c94/exprs.ql b/cpp/downgrades/73af5058c6899dcdb05754c27ca966aeb3a68c94/exprs.ql index dd5c09a67c0..39f53492991 100644 --- a/cpp/downgrades/73af5058c6899dcdb05754c27ca966aeb3a68c94/exprs.ql +++ b/cpp/downgrades/73af5058c6899dcdb05754c27ca966aeb3a68c94/exprs.ql @@ -9,5 +9,5 @@ class Location extends @location_expr { from Expr expr, int kind, int kind_new, Location location where exprs(expr, kind, location) and - if expr instanceof @blockassignexpr then kind_new = 0 else kind_new = kind + if expr instanceof @blockassignexpr then kind_new = 1 else kind_new = kind select expr, kind_new, location