From 932eb6dd3fcb3dc2d43ed3e042d12d4c9172ac71 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 22 Sep 2009 10:06:21 +0000 Subject: [PATCH] Add safe part of previous (reverted) commit, necessary to update to LLVM API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82540 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/StmtProfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp index 5a5badd289..c4d42f6be2 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->getStrData(), S->getStrData() + S->getByteLength()); + ID.AddString(S->getString()); ID.AddBoolean(S->isWide()); }