aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp')
-rw-r--r--lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp b/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp
index 8bd4085108e9..fd210d733fd0 100644
--- a/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp
+++ b/lib/Analysis/plugins/SampleAnalyzer/MainCallChecker.cpp
@@ -36,8 +36,8 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE,
if (!BT)
BT.reset(new BugType(this, "call to main", "example analyzer plugin"));
- std::unique_ptr<BugReport> report =
- llvm::make_unique<BugReport>(*BT, BT->getName(), N);
+ auto report =
+ std::make_unique<PathSensitiveBugReport>(*BT, BT->getDescription(), N);
report->addRange(Callee->getSourceRange());
C.emitReport(std::move(report));
}