Dwarf: use utostr on CUID to append to SmallString.
We used to do "SmallString += CUID", which is incorrect, since CUID will be truncated to a char. rdar://problem/13573833 llvm-svn: 178941
This commit is contained in:
parent
d4eb47c110
commit
5b22f9fe18
|
@ -643,7 +643,7 @@ unsigned DwarfDebug::getOrCreateSourceID(StringRef FileName,
|
||||||
|
|
||||||
// We look up the CUID/file/dir by concatenating them with a zero byte.
|
// We look up the CUID/file/dir by concatenating them with a zero byte.
|
||||||
SmallString<128> NamePair;
|
SmallString<128> NamePair;
|
||||||
NamePair += CUID;
|
NamePair += utostr(CUID);
|
||||||
NamePair += '\0';
|
NamePair += '\0';
|
||||||
NamePair += DirName;
|
NamePair += DirName;
|
||||||
NamePair += '\0'; // Zero bytes are not allowed in paths.
|
NamePair += '\0'; // Zero bytes are not allowed in paths.
|
||||||
|
|
Loading…
Reference in New Issue