diff options
| author | bors <bors@rust-lang.org> | 2023-12-19 05:07:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-19 05:07:32 +0000 |
| commit | f36251f689c470aaa81c31710b96fc3e51029852 (patch) | |
| tree | 5abaccd88ccb2f5852113cbbb76418387134d508 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 1929606c3e31385719253c21be0360a51c787161 (diff) | |
| parent | 0f70ced1280124e2078ec5838ac173c13f400e2e (diff) | |
| download | rust-f36251f689c470aaa81c31710b96fc3e51029852.tar.gz rust-f36251f689c470aaa81c31710b96fc3e51029852.zip | |
Auto merge of #3232 - rust-lang:rustup-2023-12-19, r=saethlin
Automatic Rustup
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"), }; |
