diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 14:45:16 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-24 15:11:29 +0000 |
| commit | 3565603d2522cb96f52b74dba3d64f5869a5ad4c (patch) | |
| tree | d9a778959f2f42bb79933fd883520250bd95c166 /compiler/rustc_codegen_llvm/src/consts.rs | |
| parent | f16f64b15a51789984d9014e92e86fb3a2fe8ce0 (diff) | |
| download | rust-3565603d2522cb96f52b74dba3d64f5869a5ad4c.tar.gz rust-3565603d2522cb96f52b74dba3d64f5869a5ad4c.zip | |
Use a safe wrapper around an LLVM FFI function
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 330e8a8f406..0dec0d869b0 100644 --- a/compiler/rustc_codegen_llvm/src/consts.rs +++ b/compiler/rustc_codegen_llvm/src/consts.rs @@ -490,7 +490,7 @@ impl<'ll> CodegenCx<'ll, '_> { llvm::LLVMMDStringInContext2(self.llcx, bytes.as_c_char_ptr(), bytes.len()); let data = [section, alloc]; let meta = llvm::LLVMMDNodeInContext2(self.llcx, data.as_ptr(), data.len()); - let val = llvm::LLVMMetadataAsValue(self.llcx, meta); + let val = self.get_metadata_value(meta); llvm::LLVMAddNamedMetadataOperand( self.llmod, c"wasm.custom_sections".as_ptr(), |
