diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-19 10:06:49 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:09 +0100 |
commit | 139304f77910315e163210a6d92bff05319e0808 (patch) | |
tree | a04519bef19f765ee2c33194a1896e588f503068 /gcc/rust/resolve | |
parent | 7ec5d6bcbff36d98ae3dce2b928ae1202d208e48 (diff) | |
download | gcc-139304f77910315e163210a6d92bff05319e0808.zip gcc-139304f77910315e163210a6d92bff05319e0808.tar.gz gcc-139304f77910315e163210a6d92bff05319e0808.tar.bz2 |
gccrs: Used `IndexVec` for BasicBlocks
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-builder-expr-stmt.cc
(ExprStmtBuilder::visit): Use strong type as index and
remove access to numeric value.
* checks/errors/borrowck/rust-bir-builder-internal.h
(struct BuilderContext): Likewise.
* checks/errors/borrowck/rust-bir-dump.cc (simplify_cfg):
Likewise.
(Dump::go): Likewise.
(Dump::visit): Likewise.
* checks/errors/borrowck/rust-bir-fact-collector.h
(class FactCollector): Likewise.
(points): Likewise.
* checks/errors/borrowck/rust-bir.h (struct BasicBlockId): Used
IndexVec for BasicBlocks.
(struct Function): Likewise.
* checks/errors/borrowck/rust-borrow-checker-diagnostics.cc
(BorrowCheckerDiagnostics::get_statement): Change the extracted
index to strong type.
Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions