[UB] Fix the two ways that we would try to memcpy from a null buffer in
the nested name specifier code. First, skip the entire thing when the input is empty. Next, handle the case where we started off with a null buffer and a zero capacity to skip copying and freeing. This was found with UBSan. llvm-svn: 243946
Loading
Please register or sign in to comment