revmc_llvm/
utils.rs

1
2
3
4
5
6
7
use inkwell::support::LLVMString;
use std::ffi::c_char;

pub(crate) unsafe fn llvm_string(ptr: *const c_char) -> LLVMString {
    // `LLVMString::new` is private
    std::mem::transmute(ptr)
}