summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-07 21:59:45 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-07 21:59:45 +0000
commitda545836f096e15279c917e54cf142f778979837 (patch)
treec7d6b6e814ad382a300f1e13d24fc15a6c6d9da4 /clang
parentbf8a1be33c646deb3c33bca74ae0f00b01c5899b (diff)
downloadbcm5719-llvm-da545836f096e15279c917e54cf142f778979837.tar.gz
bcm5719-llvm-da545836f096e15279c917e54cf142f778979837.zip
Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'.
llvm-svn: 64033
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index ee17a57e9fb..a5309057606 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -30,7 +30,6 @@
#include "llvm/Support/Compiler.h"
#include "llvm/ADT/STLExtras.h"
#include <ostream>
-#include <sstream>
#include <stdarg.h>
using namespace clang;
@@ -2479,13 +2478,13 @@ CFRefReport::getEndPath(BugReporter& br, const ExplodedNode<GRState>* EndN) {
// Generate the diagnostic.
FullSourceLoc L( S->getLocStart(), SMgr);
- std::ostringstream os;
+ std::string sbuf;
+ llvm::raw_string_ostream os(sbuf);
os << "Object allocated on line " << AllocLine;
if (FirstBinding)
os << " and stored into '" << FirstBinding->getString() << '\'';
-
// Get the retain count.
const RefVal* RV = EndN->getState()->get<RefBindings>(Sym);
OpenPOWER on IntegriCloud