projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4eb47c
)
Dwarf: use utostr on CUID to append to SmallString.
author
Manman Ren
<mren@apple.com>
Sat, 6 Apr 2013 01:02:38 +0000
(
01:02
+0000)
committer
Manman Ren
<mren@apple.com>
Sat, 6 Apr 2013 01:02:38 +0000
(
01:02
+0000)
We used to do "SmallString += CUID", which is incorrect, since CUID will
be truncated to a char.
rdar://problem/
13573833
llvm-svn: 178941
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
d3cb4f9
..
8bd9feb
100644
(file)
--- a/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-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.