forked from OSchip/llvm-project
Use StringLiteral::getBytes(), not StringLiteral::getString(), when profiling the expression, so that it works for non-UTF8 strings.
llvm-svn: 143550
This commit is contained in:
parent
4e8b463883
commit
9d0eb8f929
|
@ -275,7 +275,7 @@ void StmtProfiler::VisitImaginaryLiteral(const ImaginaryLiteral *S) {
|
|||
|
||||
void StmtProfiler::VisitStringLiteral(const StringLiteral *S) {
|
||||
VisitExpr(S);
|
||||
ID.AddString(S->getString());
|
||||
ID.AddString(S->getBytes());
|
||||
ID.AddInteger(S->getKind());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue