diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2022-01-17 22:29:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 22:29:12 -0500 |
| commit | 1d5bf6bc28ccb3e5988a160bcbda66b6b6c8fe7d (patch) | |
| tree | a0de70b71ff3935dafdff8d29b1c8aee1ce4e2f7 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 3cd49767cfd765d377f2349fd7f450258d9b8be8 (diff) | |
| download | rust-1d5bf6bc28ccb3e5988a160bcbda66b6b6c8fe7d.tar.gz rust-1d5bf6bc28ccb3e5988a160bcbda66b6b6c8fe7d.zip | |
Update compiler/rustc_codegen_llvm/src/builder.rs
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 4d87c3f1620..8a9450c20dd 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1473,9 +1473,9 @@ impl<'a, 'll, 'tcx> Builder<'a, 'll, 'tcx> { }; let f = self.declare_cfn(&name, llvm::UnnamedAddr::No, self.type_func(&[src_ty], dest_ty)); - return Some(self.call(self.type_func(&[src_ty], dest_ty), f, &[val], None)); + Some(self.call(self.type_func(&[src_ty], dest_ty), f, &[val], None)) + } else { + None } - - None } } |
