This is an archive of the discontinued LLVM Phabricator instance.

[C-API][DIBuilder] Use NameLen in LLVMDIBuilderCreateParameterVariable
ClosedPublic

Authored by Wallbraker on Aug 22 2018, 4:31 PM.

Details

Summary

NameLen wasn't being used and caused the parameters in gdb to very long, in my case, crashes in others. Please also perform the correct magical incarnations to have this be applied to the LLVM 7 branch.

Diff Detail

Repository
rL LLVM

Event Timeline

Wallbraker created this revision.Aug 22 2018, 4:31 PM
CodaFi accepted this revision.Aug 23 2018, 2:10 PM

Thanks for catching this! On top of respecting our API contract, it's good to be safe around C strings.

This revision is now accepted and ready to land.Aug 23 2018, 2:10 PM
This revision was automatically updated to reflect the committed changes.