diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2025-02-24 11:31:43 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 15:11:29 +0000 |
| commit | 840e31b29f93a5e0569d05c8879468877a9991d4 (patch) | |
| tree | 300573754f101972abe7a4fe77e38cd0db1e9de4 /compiler/rustc_codegen_llvm/src/builder/autodiff.rs | |
| parent | 75356b74370d21045099cb2a1ad81dc7a3c2579f (diff) | |
| download | rust-840e31b29f93a5e0569d05c8879468877a9991d4.tar.gz rust-840e31b29f93a5e0569d05c8879468877a9991d4.zip | |
Generalize BaseTypeCodegenMethods
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder/autodiff.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder/autodiff.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs index 78a9b168e87..1e12d1a1cb3 100644 --- a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs +++ b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs @@ -286,7 +286,8 @@ pub(crate) fn differentiate<'ll>( } let diag_handler = cgcx.create_dcx(); - let cx = SimpleCx::new(module.module_llvm.llmod(), module.module_llvm.llcx); + + let cx = SimpleCx::new(module.module_llvm.llmod(), module.module_llvm.llcx, cgcx.pointer_size); // First of all, did the user try to use autodiff without using the -Zautodiff=Enable flag? if !diff_items.is_empty() |
