summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-23 22:23:37 +0000
committerChris Lattner <sabre@nondot.org>2008-08-23 22:23:37 +0000
commita2e25e5e72002a6c5b24f609c9375952cdcb7368 (patch)
tree13158ad7d8b7bdc8d98a31e582e5304599e985a8 /clang/lib/Analysis/BugReporter.cpp
parent0c19df487136c4368757dc865b13dcc9c897dfe4 (diff)
downloadbcm5719-llvm-a2e25e5e72002a6c5b24f609c9375952cdcb7368.tar.gz
bcm5719-llvm-a2e25e5e72002a6c5b24f609c9375952cdcb7368.zip
adjust to changes in various APIs from LLVM. We can't print
an APInt directly to an ostream now, so add some hacks. It would be better to switch all of the bugreport (and friends) stuff over to raw_ostream. llvm-svn: 55264
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index a51f9fb335c..b9a0d406a97 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -21,6 +21,7 @@
#include "clang/AST/Expr.h"
#include "clang/Analysis/ProgramPoint.h"
#include "clang/Analysis/PathDiagnostic.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/DenseMap.h"
#include <sstream>
@@ -537,7 +538,8 @@ void GRBugReporter::GeneratePathDiagnostic(PathDiagnostic& PD,
continue;
}
- os << V;
+ llvm::raw_os_ostream OS(os);
+ OS << V;
}
os << ":' at line "
OpenPOWER on IntegriCloud