diff options
| author | Michael Goulet <michael@errs.io> | 2024-03-25 13:58:33 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-03-25 13:58:40 -0400 |
| commit | 99fbc6f8efd4f30b571485c9e3aae391aefedeba (patch) | |
| tree | 1e2a2f74e0b21d1ca248138007464e5c15aac7d0 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | cb7c63606e53715f94f3ba04d38e50772e4cd23d (diff) | |
| download | rust-99fbc6f8efd4f30b571485c9e3aae391aefedeba.tar.gz rust-99fbc6f8efd4f30b571485c9e3aae391aefedeba.zip | |
Instance is Copy
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index a5a5ae73d77..8724752ce24 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1630,7 +1630,7 @@ impl<'a, 'll, 'tcx> Builder<'a, 'll, 'tcx> { } let typeid = if let Some(instance) = instance { - typeid_for_instance(self.tcx, &instance, options) + typeid_for_instance(self.tcx, instance, options) } else { typeid_for_fnabi(self.tcx, fn_abi, options) }; @@ -1678,7 +1678,7 @@ impl<'a, 'll, 'tcx> Builder<'a, 'll, 'tcx> { } let kcfi_typeid = if let Some(instance) = instance { - kcfi_typeid_for_instance(self.tcx, &instance, options) + kcfi_typeid_for_instance(self.tcx, instance, options) } else { kcfi_typeid_for_fnabi(self.tcx, fn_abi, options) }; |
