diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 18:40:12 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 18:40:12 +0000 |
| commit | b0a1942196afdfd9f59b4ce4faae07097564cdca (patch) | |
| tree | 492a3a1f698b688c7b8c5e85aa6b7fb11b2b62f3 /clang/lib/Sema/CodeCompleteConsumer.cpp | |
| parent | 49ba3cabdd74396df02e8ef68fdcd95690217e28 (diff) | |
| download | bcm5719-llvm-b0a1942196afdfd9f59b4ce4faae07097564cdca.tar.gz bcm5719-llvm-b0a1942196afdfd9f59b4ce4faae07097564cdca.zip | |
Spell empty StringRef correctly (0 is a null StringRef, which is not the same).
llvm-svn: 87011
Diffstat (limited to 'clang/lib/Sema/CodeCompleteConsumer.cpp')
| -rw-r--r-- | clang/lib/Sema/CodeCompleteConsumer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: |

