]> granicus.if.org Git - clang/commitdiff
Fixing a build bot break from r240400.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 23 Jun 2015 13:29:33 +0000 (13:29 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 23 Jun 2015 13:29:33 +0000 (13:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240401 91177308-0d34-0410-b5e6-96231b3b80d8

examples/analyzer-plugin/MainCallChecker.cpp

index 2ad8c8416a5eb96c6873e90dcb3713643bb6e3d1..a6f69fd175bc505ef9dcacc6e01aa8b8d60e7c65 100644 (file)
@@ -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));
   }
 }