]> git.ipfire.org Git - thirdparty/gcc.git/commit
Strong type ScopeId
authorKushal Pal <kushalpal109@gmail.com>
Wed, 7 Aug 2024 10:16:24 +0000 (10:16 +0000)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 9 Sep 2024 08:33:02 +0000 (08:33 +0000)
commitffeb37619e17e54efdbe4032546a270ee4f04ee5
tree17400228b24e4c4ebb6b7052a1cc6f9528d5236a
parentb3dd18c0ef3009c32f5efd485de0221e969538c7
Strong type ScopeId

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-builder-expr-stmt.cc
(ExprStmtBuilder::setup_loop): Use value of ScopeId.
(ExprStmtBuilder::visit): Use continue scope id instead of
continue basic block id.
* checks/errors/borrowck/rust-bir-builder-internal.h: Use value
of ScopeId.
* checks/errors/borrowck/rust-bir-dump.cc (Dump::go): Use
ROOT_VALUE instead of hardcoded 0.
(Dump::visit_scope): Use value of ScopeId.
* checks/errors/borrowck/rust-bir-place.h (struct ScopeId):
ScopeId is now a struct.
(std::numeric_limits::max): Set invalid ScopeId.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/checks/errors/borrowck/rust-bir-builder-expr-stmt.cc
gcc/rust/checks/errors/borrowck/rust-bir-builder-internal.h
gcc/rust/checks/errors/borrowck/rust-bir-dump.cc
gcc/rust/checks/errors/borrowck/rust-bir-place.h