aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-01-11 16:33:01 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-01-11 16:33:01 +0800
commitbc94b7de4614100b63e17a50692a23feab1c139f (patch)
tree697d3614ebc838d15875eb6602bd349ca885403c /gcc/rust/backend/rust-compile.cc
parentaa487ef2717e0f319f2f8d3496d0003939ec2b09 (diff)
parent9a3ad294e0af5ed45b53c340382a7806fb150bdf (diff)
downloadgcc-bc94b7de4614100b63e17a50692a23feab1c139f.zip
gcc-bc94b7de4614100b63e17a50692a23feab1c139f.tar.gz
gcc-bc94b7de4614100b63e17a50692a23feab1c139f.tar.bz2
Merge branch 'master' of https://github.com/redbrain/gccrs
Diffstat (limited to 'gcc/rust/backend/rust-compile.cc')
-rw-r--r--gcc/rust/backend/rust-compile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc
index a52f183..3f8a962 100644
--- a/gcc/rust/backend/rust-compile.cc
+++ b/gcc/rust/backend/rust-compile.cc
@@ -64,7 +64,7 @@ CompileBlock::visit (HIR::BlockExpr &expr)
}
std::vector<Bvariable *> locals;
- rib->iterate_decls ([&] (NodeId n) mutable -> bool {
+ rib->iterate_decls ([&] (NodeId n, Location) mutable -> bool {
Resolver::Definition d;
bool ok = ctx->get_resolver ()->lookup_definition (n, &d);
rust_assert (ok);