Describe the Bug
If BasicValueEnum::set_name receives NULL-terminated string it crashes in LLVM assert that checks strings for NULL-termination
To Reproduce
let value = fn_.get_nth_param(0 as u32).unwrap();
value.set_name("asdf\0");
Expected Behavior
I expect BasicValueEnum::set_name(...) to either not include terminating NULL when passing string to LLVMSetValueName2(...) or just not accept NULL-terminated strings at all
LLVM Version (please complete the following information):
Describe the Bug If
BasicValueEnum::set_name
receives NULL-terminated string it crashes in LLVM assert that checks strings for NULL-terminationTo Reproduce
Expected Behavior I expect
BasicValueEnum::set_name(...)
to either not include terminating NULL when passing string toLLVMSetValueName2(...)
or just not accept NULL-terminated strings at allLLVM Version (please complete the following information):