diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-11 20:54:17 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-11 20:54:17 +0000 |
commit | 8535b8ecf2913b1a53571624da04890174381afe (patch) | |
tree | 4837c736d33bc6372c33ae4400a2fafeee33bff8 /clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp | |
parent | 7fcc2c2b5a9e02175cc3154f4f3983395f9840a3 (diff) | |
download | bcm5719-llvm-8535b8ecf2913b1a53571624da04890174381afe.tar.gz bcm5719-llvm-8535b8ecf2913b1a53571624da04890174381afe.zip |
[analyzer] NFC: Re-implement stack hints as a side map in BugReport.
That's one of the few random entities in the PathDiagnostic interface that
are specific to the Static Analyzer. By moving them out we could let
everybody use path diagnostics without linking against Static Analyzer.
Differential Revision: https://reviews.llvm.org/D67381
llvm-svn: 371658
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp index 89225d0bc77..882df3e1f90 100644 --- a/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp @@ -140,8 +140,7 @@ DeleteWithNonVirtualDtorChecker::DeleteBugVisitor::VisitNode( OS << "Conversion from derived to base happened here"; PathDiagnosticLocation Pos(S, BRC.getSourceManager(), N->getLocationContext()); - return std::make_shared<PathDiagnosticEventPiece>(Pos, OS.str(), true, - nullptr); + return std::make_shared<PathDiagnosticEventPiece>(Pos, OS.str(), true); } void ento::registerDeleteWithNonVirtualDtorChecker(CheckerManager &mgr) { |