forked from OSchip/llvm-project
Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'.
llvm-svn: 64033
This commit is contained in:
parent
bf8a1be33c
commit
da545836f0
|
@ -30,7 +30,6 @@
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <sstream>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
using namespace clang;
|
using namespace clang;
|
||||||
|
@ -2479,13 +2478,13 @@ CFRefReport::getEndPath(BugReporter& br, const ExplodedNode<GRState>* EndN) {
|
||||||
|
|
||||||
// Generate the diagnostic.
|
// Generate the diagnostic.
|
||||||
FullSourceLoc L( S->getLocStart(), SMgr);
|
FullSourceLoc L( S->getLocStart(), SMgr);
|
||||||
std::ostringstream os;
|
std::string sbuf;
|
||||||
|
llvm::raw_string_ostream os(sbuf);
|
||||||
|
|
||||||
os << "Object allocated on line " << AllocLine;
|
os << "Object allocated on line " << AllocLine;
|
||||||
|
|
||||||
if (FirstBinding)
|
if (FirstBinding)
|
||||||
os << " and stored into '" << FirstBinding->getString() << '\'';
|
os << " and stored into '" << FirstBinding->getString() << '\'';
|
||||||
|
|
||||||
|
|
||||||
// Get the retain count.
|
// Get the retain count.
|
||||||
const RefVal* RV = EndN->getState()->get<RefBindings>(Sym);
|
const RefVal* RV = EndN->getState()->get<RefBindings>(Sym);
|
||||||
|
|
Loading…
Reference in New Issue