mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
310f2665e8
commit
5044a9395a
@ -643,7 +643,7 @@ unsigned DwarfDebug::getOrCreateSourceID(StringRef FileName,
|
||||
|
||||
// We look up the CUID/file/dir by concatenating them with a zero byte.
|
||||
SmallString<128> NamePair;
|
||||
NamePair += CUID;
|
||||
NamePair += utostr(CUID);
|
||||
NamePair += '\0';
|
||||
NamePair += DirName;
|
||||
NamePair += '\0'; // Zero bytes are not allowed in paths.
|
||||
|
Loading…
x
Reference in New Issue
Block a user