C++: Fix the expression kind in two of the downgrade scripts

A 0 value for the expression kind is not valid, as 0 does not occur in the
relevant case split. This should have been the value of `@errorexpr`, which
is 1.
This commit is contained in:
Jeroen Ketema 2023-01-05 11:04:31 +01:00
Родитель 4aa62757a9
Коммит 14283f01ac
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 0D28C783F1AAA17F
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -13,5 +13,5 @@ predicate isExprWithNewBuiltin(Expr expr) {
from Expr expr, int kind, int kind_new, Location location from Expr expr, int kind, int kind_new, Location location
where where
exprs(expr, kind, location) and 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 select expr, kind_new, location

Просмотреть файл

@ -9,5 +9,5 @@ class Location extends @location_expr {
from Expr expr, int kind, int kind_new, Location location from Expr expr, int kind, int kind_new, Location location
where where
exprs(expr, kind, location) and 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 select expr, kind_new, location