]> granicus.if.org Git - clang/commitdiff
Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'.
authorTed Kremenek <kremenek@apple.com>
Sat, 7 Feb 2009 21:59:45 +0000 (21:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 7 Feb 2009 21:59:45 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64033 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index ee17a57e9fb4922852d5dbfaf65427072067e798..a530905760686e22f1da0667a281dcaaf9456345 100644 (file)
@@ -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);