diff options
| author | Manuel Drehwald <git@manuel.drehwald.info> | 2025-04-04 14:24:23 -0400 |
|---|---|---|
| committer | Manuel Drehwald <git@manuel.drehwald.info> | 2025-04-04 14:24:23 -0400 |
| commit | b7c63a973fdfa317a01b9d676803c59edc31abdc (patch) | |
| tree | 9c85b9bcdc2f5eb4aae7a6434a58f2bd272a6a3e /compiler/rustc_codegen_llvm/src/consts.rs | |
| parent | e0c8ead8802fcc314ec852a6641e08fd09307708 (diff) | |
| download | rust-b7c63a973fdfa317a01b9d676803c59edc31abdc.tar.gz rust-b7c63a973fdfa317a01b9d676803c59edc31abdc.zip | |
add autodiff batching backend
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/consts.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/consts.rs b/compiler/rustc_codegen_llvm/src/consts.rs index 62fa2884e0f..d5acfe20531 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -425,7 +425,7 @@ impl<'ll> CodegenCx<'ll, '_> { let val_llty = self.val_ty(v); let g = self.get_static_inner(def_id, val_llty); - let llty = llvm::LLVMGlobalGetValueType(g); + let llty = self.get_type_of_global(g); let g = if val_llty == llty { g |
