Is this legal?
remapDIPath takes a StringRef to Path. Is the sret value going to be a temporary or are we modifying the contents of the string while reading from it in remapDIPath?
& -> &TheCU
We should try to explicitly capture what we use, this will avoid potential bugs where we accidentally modify something we did not mean to capture later on when modifying the code.
I'll update this with either a fix in clang or a patch to lldb once I figured out what happened.