r240401 - Fixing a build bot break from r240400.

Aaron Ballman aaron at aaronballman.com
Tue Jun 23 06:29:34 PDT 2015


Author: aaronballman
Date: Tue Jun 23 08:29:33 2015
New Revision: 240401

URL: http://llvm.org/viewvc/llvm-project?rev=240401&view=rev
Log:
Fixing a build bot break from r240400.

Modified:
    cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp

Modified: cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp?rev=240401&r1=240400&r2=240401&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp (original)
+++ cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp Tue Jun 23 08:29:33 2015
@@ -37,9 +37,10 @@ void MainCallChecker::checkPreStmt(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));
   }
 }
 





More information about the cfe-commits mailing list