aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppbuiltin.cc
diff options
context:
space:
mode:
authorKushal Pal <kushalpal109@gmail.com>2024-07-19 07:30:03 +0000
committerCohenArthur <arthur.cohen@embecosm.com>2024-08-02 11:41:15 +0000
commit155f6a9c80854b2181fdcd9e230ff8359f63fc27 (patch)
treed0129f123d31c56db4a384c166a59bd3cb945489 /gcc/cppbuiltin.cc
parent812c5347bc088783ac3587f3ffab709968a7e628 (diff)
downloadgcc-155f6a9c80854b2181fdcd9e230ff8359f63fc27.zip
gcc-155f6a9c80854b2181fdcd9e230ff8359f63fc27.tar.gz
gcc-155f6a9c80854b2181fdcd9e230ff8359f63fc27.tar.bz2
Add location to BIR::Statement of kind RETURN
This commit adds location_t to BIR::Statement where type is RETURN. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (ExprStmtBuilder::visit): Add location parameter. * checks/errors/borrowck/rust-bir-builder.h: Likewise. * checks/errors/borrowck/rust-bir-builder-internal.h: Add helper function for pushing return statements. * checks/errors/borrowck/rust-bir.h: Remove `expr` parameter as it is only needed for ASSIGNMENT statements, for which we already have a constructor. Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/cppbuiltin.cc')
0 files changed, 0 insertions, 0 deletions