]> granicus.if.org Git - clang/commitdiff
Use StringLiteral::getBytes(), not StringLiteral::getString(), when profiling the...
authorDouglas Gregor <dgregor@apple.com>
Wed, 2 Nov 2011 17:26:05 +0000 (17:26 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 2 Nov 2011 17:26:05 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143550 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtProfile.cpp

index 93b2f65818396983fd4c1943c93d90b620677c88..db97e59804e37f3ebb2126e51eb5342d94b2e133 100644 (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());
 }