Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'.

llvm-svn: 64033
This commit is contained in:
Ted Kremenek 2009-02-07 21:59:45 +00:00
parent bf8a1be33c
commit da545836f0
1 changed files with 2 additions and 3 deletions

View 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);