aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2021-11-15 09:49:38 -0800
committerDavid Faust <david.faust@oracle.com>2021-11-16 13:12:53 -0800
commit95048daaffa5e16df4d663702fe80294eac7b85e (patch)
treeb56f8e72ac7161b460b8e8455d1c957330680790 /gcc/rust/backend/rust-compile-resolve-path.cc
parent553e88f1dd4b4794334ee6d1861c185b92361a0b (diff)
downloadgcc-95048daaffa5e16df4d663702fe80294eac7b85e.zip
gcc-95048daaffa5e16df4d663702fe80294eac7b85e.tar.gz
gcc-95048daaffa5e16df4d663702fe80294eac7b85e.tar.bz2
Replace Bfunction with GCC tree
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
-rw-r--r--gcc/rust/backend/rust-compile-resolve-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.cc b/gcc/rust/backend/rust-compile-resolve-path.cc
index 81ffad8..cb3f0df 100644
--- a/gcc/rust/backend/rust-compile-resolve-path.cc
+++ b/gcc/rust/backend/rust-compile-resolve-path.cc
@@ -92,7 +92,7 @@ ResolvePathRef::resolve (const HIR::PathIdentSegment &final_segment,
if (lookup->get_kind () == TyTy::TypeKind::FNDEF)
{
TyTy::FnType *fntype = static_cast<TyTy::FnType *> (lookup);
- Bfunction *fn = nullptr;
+ tree fn = NULL_TREE;
if (ctx->lookup_function_decl (fntype->get_ty_ref (), &fn))
{
return ctx->get_backend ()->function_code_expression (fn, expr_locus);