about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2022-01-17 22:29:12 -0500
committerGitHub <noreply@github.com>2022-01-17 22:29:12 -0500
commit1d5bf6bc28ccb3e5988a160bcbda66b6b6c8fe7d (patch)
treea0de70b71ff3935dafdff8d29b1c8aee1ce4e2f7 /compiler/rustc_codegen_llvm/src/builder.rs
parent3cd49767cfd765d377f2349fd7f450258d9b8be8 (diff)
downloadrust-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.rs6
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
     }
 }