From: Aaron Ballman Date: Tue, 23 Jun 2015 13:29:33 +0000 (+0000) Subject: Fixing a build bot break from r240400. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f328db55db19965d0896428439aaa400c80e6d9;p=clang Fixing a build bot break from r240400. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240401 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp index 2ad8c8416a..a6f69fd175 100644 --- a/examples/analyzer-plugin/MainCallChecker.cpp +++ b/examples/analyzer-plugin/MainCallChecker.cpp @@ -37,9 +37,10 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const if (!BT) BT.reset(new BugType(this, "call to main", "example analyzer plugin")); - BugReport *report = new BugReport(*BT, BT->getName(), N); + std::unique_ptr report = + llvm::make_unique(*BT, BT->getName(), N); report->addRange(Callee->getSourceRange()); - C.emitReport(report); + C.emitReport(std::move(report)); } }