aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/CodeCompleteConsumer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-12 18:40:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-12 18:40:12 +0000
commitad5757f798b08f24942f093c4ac8b9fc2b527d39 (patch)
tree5a35ecc3e68ee91eed5ee50ceeefecbaa81f6dec /lib/Sema/CodeCompleteConsumer.cpp
parentcaddba07f82096ee0d0a0312727d4418ee7a8d36 (diff)
Spell empty StringRef correctly (0 is a null StringRef, which is not the same).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/CodeCompleteConsumer.cpp')
-rw-r--r--lib/Sema/CodeCompleteConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/CodeCompleteConsumer.cpp b/lib/Sema/CodeCompleteConsumer.cpp
index cb4e8ef826..f94989ee72 100644
--- a/lib/Sema/CodeCompleteConsumer.cpp
+++ b/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: