diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-22 14:33:47 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:05 +0100 |
commit | 86c8894ab896ffc29bbed5fc7faeff022e86ad22 (patch) | |
tree | ec04428191931856cec52139c5b18ec8caf9d4a7 /gcc/rust/hir | |
parent | 51f430a4642339af721dbc09af8db39aef8c744c (diff) | |
download | gcc-86c8894ab896ffc29bbed5fc7faeff022e86ad22.zip gcc-86c8894ab896ffc29bbed5fc7faeff022e86ad22.tar.gz gcc-86c8894ab896ffc29bbed5fc7faeff022e86ad22.tar.bz2 |
gccrs: Make sure CompileExpr::visit is reached
gcc/rust/ChangeLog:
* hir/tree/rust-hir.cc (InlineAsm::accept_vis):
Make sure CompileExpr::visit is reached
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
Likewise
gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_compile_nop.rs: New test.
Diffstat (limited to 'gcc/rust/hir')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/rust/hir/tree/rust-hir.cc b/gcc/rust/hir/tree/rust-hir.cc index 8e0d444..f05e506 100644 --- a/gcc/rust/hir/tree/rust-hir.cc +++ b/gcc/rust/hir/tree/rust-hir.cc @@ -3833,7 +3833,9 @@ BorrowExpr::accept_vis (HIRFullVisitor &vis) void InlineAsm::accept_vis (HIRExpressionVisitor &vis) -{} +{ + vis.visit (*this); +} void InlineAsm::accept_vis (HIRFullVisitor &vis) |