diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2021-02-04 12:43:59 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2021-02-04 12:43:59 +0800 |
commit | 7c7c76f27f6ab999ec8fa299bde8911911fa7d90 (patch) | |
tree | e432cd20f59552da34313060fbcbd87e0ef9728a /gcc/rust/backend/rust-compile-expr.h | |
parent | 877e7ac6c72608950fbe2ffde04142bbfb01b29d (diff) | |
parent | 9abf0733814c5e4131b96afb1c0abad68f4cf4ef (diff) | |
download | gcc-7c7c76f27f6ab999ec8fa299bde8911911fa7d90.zip gcc-7c7c76f27f6ab999ec8fa299bde8911911fa7d90.tar.gz gcc-7c7c76f27f6ab999ec8fa299bde8911911fa7d90.tar.bz2 |
Merge branch 'master' of https://github.com/redbrain/gccrs
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 81d7786..ccff51a 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -481,6 +481,11 @@ public: expr.get_locus ()); } + void visit (HIR::PathInExpression &expr) + { + translated = ResolvePathRef::Compile (&expr, ctx); + } + private: CompileExpr (Context *ctx) : HIRCompileBase (ctx), translated (nullptr) {} |