summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-06-23 13:29:33 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-06-23 13:29:33 +0000
commit4f328db55db19965d0896428439aaa400c80e6d9 (patch)
treef7e9c19cd28566b49010d1a24e4af3ec254cb9b8 /examples
parente1c2ad65ca21f0115bec365138fead6dea0dfc61 (diff)
Fixing a build bot break from r240400.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/analyzer-plugin/MainCallChecker.cpp5
1 files changed, 3 insertions, 2 deletions
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<BugReport> report =
+ llvm::make_unique<BugReport>(*BT, BT->getName(), N);
report->addRange(Callee->getSourceRange());
- C.emitReport(report);
+ C.emitReport(std::move(report));
}
}