diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-20 14:52:23 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-24 07:33:02 +1100 |
| commit | 08f28f94479d09ae5f7d2cf1d3c018b714751c35 (patch) | |
| tree | 96caebadb102273cb989c2208c1de98661ae56d6 /compiler/rustc_codegen_llvm/src | |
| parent | c09f5b6a6b82f785165c68546d323011fad052c0 (diff) | |
| download | rust-08f28f94479d09ae5f7d2cf1d3c018b714751c35.tar.gz rust-08f28f94479d09ae5f7d2cf1d3c018b714751c35.zip | |
Use `List::empty()` instead of `mk_substs(&[])`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 47dcbba59ac..3d29968d5d6 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -520,7 +520,7 @@ impl<'ll, 'tcx> MiscMethods<'tcx> for CodegenCx<'ll, 'tcx> { let tcx = self.tcx; let llfn = match tcx.lang_items().eh_personality() { Some(def_id) if !wants_msvc_seh(self.sess()) => self.get_fn_addr( - ty::Instance::resolve(tcx, ty::ParamEnv::reveal_all(), def_id, tcx.mk_substs(&[])) + ty::Instance::resolve(tcx, ty::ParamEnv::reveal_all(), def_id, ty::List::empty()) .unwrap() .unwrap(), ), |
