diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-14 18:45:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-14 18:45:37 +0000 |
commit | b8989f27f116ff2400e92a52c067a69846119eb5 (patch) | |
tree | fad64c15a367b5059588e3d6d3a70e08044048ac /lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 2b5cfbc0b074ef77ccac407533d27778ace4028c (diff) |
Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer.
Passing a pointer was a bad idea as it collides with the overload for void*.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/BugReporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index cdc9dcf752..fbbdb040e4 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -438,7 +438,7 @@ public: if (Loc::isLocType(VD->getType())) { llvm::SmallString<64> buf; llvm::raw_svector_ostream os(buf); - os << '\'' << VD << "' now aliases '" << MostRecent << '\''; + os << '\'' << *VD << "' now aliases '" << *MostRecent << '\''; PathDiagnosticLocation L = PathDiagnosticLocation::createBegin(S, BR.getSourceManager(), Pred->getLocationContext()); @@ -594,7 +594,7 @@ static void GenerateMinimalPathDiagnostic(PathDiagnostic& PD, if (D) { GetRawInt = false; - os << D; + os << *D; } } |