Update compiler/rustc_codegen_llvm/src/builder.rs

Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
This commit is contained in:
Caleb Zulawski 2022-01-17 22:29:12 -05:00 committed by GitHub
parent 3cd49767cf
commit 1d5bf6bc28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}