Make allocator_kind a query.

This commit is contained in:
Camille GILLOT 2021-05-11 22:05:54 +02:00
parent 9be7ca00f1
commit b497c7d954

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 {