diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:23:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:23:37 +0000 |
commit | 405674c26c52b05df0d833fae6bae818cd52bc32 (patch) | |
tree | f0c92fd716467d6754e9a7f906beb1994d7a12e1 /lib/Analysis/BugReporter.cpp | |
parent | 4f3cc8189677ceb79293748a159010ac05f481a8 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index a51f9fb335..b9a0d406a9 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/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 " |