1
Fork 0

Make allocator_kind a query.

This commit is contained in:
Camille GILLOT 2021-05-11 22:05:54 +02:00
parent 9543636cd6
commit 6a371d2c89
7 changed files with 10 additions and 9 deletions

View file

@ -19,7 +19,7 @@ pub(crate) fn codegen(
});
if any_dynamic_crate {
false
} else if let Some(kind) = tcx.allocator_kind() {
} else if let Some(kind) = tcx.allocator_kind(()) {
codegen_inner(module, unwind_context, kind);
true
} else {