From c60382d68f10c1a54ff5a5222d5d43c2e5131abd Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 13 Oct 2024 19:50:02 +0200 Subject: [PATCH] prevent access violation in LLVMParseCommandlineOptions --- openvaf/llvm/src/initialization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvaf/llvm/src/initialization.rs b/openvaf/llvm/src/initialization.rs index 7d641cb4..ef012e53 100644 --- a/openvaf/llvm/src/initialization.rs +++ b/openvaf/llvm/src/initialization.rs @@ -102,7 +102,7 @@ unsafe fn configure_llvm(cg_opts: &[String], tg_opts: &[String]) { LLVMParseCommandLineOptions( llvm_args.len() as c_int, llvm_args.as_ptr(), - b"".as_ptr() as *const c_char, + b"A Verilog-A compiler".as_ptr() as *const c_char, ); }