diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-12-15 21:33:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-15 21:33:00 -0800 |
| commit | c9ba4583aa7ad59b98ed7b4e8b93f7da73134865 (patch) | |
| tree | 440764691b41ffaeab091655ef58be347c230071 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 30231d9afa66448077f4bc03b61bdfbec1d53f9a (diff) | |
| parent | 74d81d15b400590b39b9f3ab08f45eaf557aca17 (diff) | |
| download | rust-c9ba4583aa7ad59b98ed7b4e8b93f7da73134865.tar.gz rust-c9ba4583aa7ad59b98ed7b4e8b93f7da73134865.zip | |
Rollup merge of #119003 - matthiaskrgr:nein_clone, r=Nadrieril
NFC: do not clone types that are copy
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 f4b9296dbbd..8f60175a603 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -353,7 +353,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { let new_kind = match ty.kind() { Int(t @ Isize) => Int(t.normalize(self.tcx.sess.target.pointer_width)), Uint(t @ Usize) => Uint(t.normalize(self.tcx.sess.target.pointer_width)), - t @ (Uint(_) | Int(_)) => t.clone(), + t @ (Uint(_) | Int(_)) => *t, _ => panic!("tried to get overflow intrinsic for op applied to non-int type"), }; |
