1use inkwell::support::LLVMString; 2use std::ffi::c_char; 3 4pub(crate) unsafe fn llvm_string(ptr: *const c_char) -> LLVMString { 5 // `LLVMString::new` is private 6 std::mem::transmute(ptr) 7}