commit | 6bdeb4024a7422bbd61fad403383af76b0581d45 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 26 21:33:22 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 26 21:33:22 2010 +0000 |
tree | b82691dd824a016e01502b8bad33e7971c662303 | |
parent | 55c6570bf6f4342203eb0ff0816fe28e6c55964a [diff] |
Minor code simplification. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109443 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/CodeCompleteConsumer.cpp b/lib/Sema/CodeCompleteConsumer.cpp index 6cefc61..0310776 100644 --- a/lib/Sema/CodeCompleteConsumer.cpp +++ b/lib/Sema/CodeCompleteConsumer.cpp
@@ -234,8 +234,7 @@ default: OS << C->Text; break; } } - OS.flush(); - return Result; + return OS.str(); } const char *CodeCompletionString::getTypedText() const {