diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 22:05:54 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-30 19:58:01 +0200 |
| commit | ee94fbb607957ff842778ebec5e8e621145c60b3 (patch) | |
| tree | deda1971dd41569d6ca75b3567fa4b1f46a262c3 /compiler/rustc_codegen_cranelift | |
| parent | e1e69495582a6073717c1f68ee84084fbbeefb0a (diff) | |
Make allocator_kind a query.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/allocator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/allocator.rs b/compiler/rustc_codegen_cranelift/src/allocator.rs index 357a9f2daf7..d39486c2f10 100644 --- a/compiler/rustc_codegen_cranelift/src/allocator.rs +++ b/compiler/rustc_codegen_cranelift/src/allocator.rs @@ -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 { |
