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:
Douglas Gregor 2011-11-02 17:26:05 +00:00
parent 4e8b463883
commit 9d0eb8f929
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}