]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add location support to BIR::Statement
authorKushal Pal <kushalpal109@gmail.com>
Thu, 27 Jun 2024 01:18:54 +0000 (01:18 +0000)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 1 Aug 2024 10:38:50 +0000 (10:38 +0000)
commitf2c807127b5c88ca0bd4993fe8315d865b8c5ba5
treec5fa658c08832e24a4e613d2ddff7e514124c711
parente941015a2a7c18ecfdf68ecf60495d65aeea1fe4
Add location support to BIR::Statement

This commit adds location_t to BIR::Statement where type is ASSIGNMENT
this information will be later used for reporting borrow-checking
errors.

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-builder-expr-stmt.cc
(ExprStmtBuilder::visit): Added location parameter.
* checks/errors/borrowck/rust-bir-builder-internal.h: Likewise.
* checks/errors/borrowck/rust-bir-builder-lazyboolexpr.h:
Likewise.
* checks/errors/borrowck/rust-bir-builder-pattern.h: Likewise.
* checks/errors/borrowck/rust-bir-builder.h: Likewise.
* checks/errors/borrowck/rust-bir.h: Likewise.

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-builder-lazyboolexpr.h
gcc/rust/checks/errors/borrowck/rust-bir-builder-pattern.h
gcc/rust/checks/errors/borrowck/rust-bir-builder.h
gcc/rust/checks/errors/borrowck/rust-bir.h