TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

Fix null-terminated strings in LLVMSetValueName2 and LLVMMDStringInContext #534

Closed vosen closed 2 months ago

vosen commented 2 months ago

Description

Omit terminating NULL when passing strings to LLVMSetValueName2(...) and LLVMMDStringInContext(...)

Related Issue

https://github.com/TheDan64/inkwell/issues/533

How This Has Been Tested

I tried the PR in my codebase

Checklist