From b0a1942196afdfd9f59b4ce4faae07097564cdca Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 12 Nov 2009 18:40:12 +0000 Subject: Spell empty StringRef correctly (0 is a null StringRef, which is not the same). llvm-svn: 87011 --- clang/lib/Sema/CodeCompleteConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/CodeCompleteConsumer.cpp') diff --git a/clang/lib/Sema/CodeCompleteConsumer.cpp b/clang/lib/Sema/CodeCompleteConsumer.cpp index cb4e8ef826b..f94989ee721 100644 --- a/clang/lib/Sema/CodeCompleteConsumer.cpp +++ b/clang/lib/Sema/CodeCompleteConsumer.cpp @@ -28,7 +28,7 @@ using namespace clang; // Code completion string implementation //===----------------------------------------------------------------------===// CodeCompletionString::Chunk::Chunk(ChunkKind Kind, llvm::StringRef Text) - : Kind(Kind), Text(0) + : Kind(Kind), Text("") { switch (Kind) { case CK_TypedText: -- cgit v1.2.3