aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-22 10:03:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-22 10:03:52 +0000
commitf015b034159d40e7033309e50036804eb1971787 (patch)
tree7d4989d9817e020f41260da7ebdc5db422b7e59a /lib/AST/StmtProfile.cpp
parent7f8b57aa3558ed079358637a2a48db7d2fefb4b2 (diff)
Revert "Switch a few clients over to StringLiteral::getString.", this is breaking some projects, but I don't have a test case yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtProfile.cpp')
-rw-r--r--lib/AST/StmtProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp
index c4d42f6be2..5a5badd289 100644
--- a/lib/AST/StmtProfile.cpp
+++ b/lib/AST/StmtProfile.cpp
@@ -237,7 +237,7 @@ void StmtProfiler::VisitImaginaryLiteral(ImaginaryLiteral *S) {
void StmtProfiler::VisitStringLiteral(StringLiteral *S) {
VisitExpr(S);
- ID.AddString(S->getString());
+ ID.AddString(S->getStrData(), S->getStrData() + S->getByteLength());
ID.AddBoolean(S->isWide());
}