diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-context.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 4147eec..2b2018f 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -53,11 +53,12 @@ public: for (auto it = builtins.begin (); it != builtins.end (); it++) { HirId ref; - rust_assert ( - tyctx->lookup_type_by_node_id ((*it)->get_node_id (), &ref)); + bool ok = tyctx->lookup_type_by_node_id ((*it)->get_node_id (), &ref); + rust_assert (ok); TyTy::BaseType *lookup; - rust_assert (tyctx->lookup_type (ref, &lookup)); + ok = tyctx->lookup_type (ref, &lookup); + rust_assert (ok); Btype *compiled = TyTyCompile::compile (backend, lookup); compiled_type_map.insert (std::pair<HirId, Btype *> (ref, compiled)); |