diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-stmt.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-stmt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-stmt.h b/gcc/rust/backend/rust-compile-stmt.h index 21e5814..754c5d2 100644 --- a/gcc/rust/backend/rust-compile-stmt.h +++ b/gcc/rust/backend/rust-compile-stmt.h @@ -60,9 +60,10 @@ public: Bexpression *value = CompileExpr::Compile (constant.get_expr (), ctx); const Resolver::CanonicalPath *canonical_path = nullptr; - rust_assert (ctx->get_mappings ()->lookup_canonical_path ( + ok = ctx->get_mappings ()->lookup_canonical_path ( constant.get_mappings ().get_crate_num (), - constant.get_mappings ().get_nodeid (), &canonical_path)); + constant.get_mappings ().get_nodeid (), &canonical_path); + rust_assert (ok); std::string ident = canonical_path->get (); Bexpression *const_expr |