Skip to content

Commit f370cd8

Browse files
authored
Merge pull request github#11818 from jketema/downgrade-fix
C++: Fix the expression kind in two of the downgrade scripts
2 parents c8f35ea + 14283f0 commit f370cd8

File tree

2 files changed

+2
-2
lines changed
  • cpp/downgrades
    • 23f7cbb88a4eb29f30c3490363dc201bc054c5ff
    • 73af5058c6899dcdb05754c27ca966aeb3a68c94

2 files changed

+2
-2
lines changed

cpp/downgrades/23f7cbb88a4eb29f30c3490363dc201bc054c5ff/exprs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ predicate isExprWithNewBuiltin(Expr expr) {
1313
from Expr expr, int kind, int kind_new, Location location
1414
where
1515
exprs(expr, kind, location) and
16-
if isExprWithNewBuiltin(expr) then kind_new = 0 else kind_new = kind
16+
if isExprWithNewBuiltin(expr) then kind_new = 1 else kind_new = kind
1717
select expr, kind_new, location

cpp/downgrades/73af5058c6899dcdb05754c27ca966aeb3a68c94/exprs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ class Location extends @location_expr {
99
from Expr expr, int kind, int kind_new, Location location
1010
where
1111
exprs(expr, kind, location) and
12-
if expr instanceof @blockassignexpr then kind_new = 0 else kind_new = kind
12+
if expr instanceof @blockassignexpr then kind_new = 1 else kind_new = kind
1313
select expr, kind_new, location

0 commit comments

Comments
 (0)