From: Daniel Dunbar Date: Tue, 22 Sep 2009 10:06:21 +0000 (+0000) Subject: Add safe part of previous (reverted) commit, necessary to update to LLVM API change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=932eb6dd3fcb3dc2d43ed3e042d12d4c9172ac71;p=clang 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 --- 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()); }