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/ADT/STLExtras.h"
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
#include <stdarg.h>
|
||||
|
||||
using namespace clang;
|
||||
|
@ -2479,14 +2478,14 @@ 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue