diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-08 11:56:12 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-08-08 12:15:16 -0400 |
| commit | b9164319769c52bd98607d80b4c7c53e06bf6887 (patch) | |
| tree | 9cf7baa0c0a937f1c0793fee95cae209cccb122b /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | f81549c9ca465e87ab6902dee8cdb4989ee50077 (diff) | |
| download | rust-b9164319769c52bd98607d80b4c7c53e06bf6887.tar.gz rust-b9164319769c52bd98607d80b4c7c53e06bf6887.zip | |
Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index c4c1516b911..0f44c5dba5e 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -532,7 +532,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { #[instrument(level = "trace", skip(self))] fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> { if place.layout.is_unsized() { - let tail = self.tcx.struct_tail_erasing_lifetimes(place.layout.ty, self.param_env()); + let tail = self.tcx.struct_tail_for_codegen(place.layout.ty, self.param_env()); if matches!(tail.kind(), ty::Foreign(..)) { // Unsized locals and, at least conceptually, even unsized arguments must be copied // around, which requires dynamically determining their size. Therefore, we cannot |
