summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-17 03:23:51 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-17 03:23:51 +0000
commit26fb4cbaef01a98b78eb24b1ec72946a87e70595 (patch)
tree66a03291e3a28df01bf5d749142ddcaa996f1d77 /examples
parent8e240498dfd4355849bcec943e97799f7f75d93d (diff)
Don't use BuiltinBug in analyzer plugin example.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/analyzer-plugin/MainCallChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp
index bf753899c2..a720bb9647 100644
--- a/examples/analyzer-plugin/MainCallChecker.cpp
+++ b/examples/analyzer-plugin/MainCallChecker.cpp
@@ -34,7 +34,7 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const
return;
if (!BT)
- BT.reset(new BuiltinBug("call to main"));
+ BT.reset(new BugType("call to main", "example analyzer plugin"));
RangedBugReport *report = new RangedBugReport(*BT, BT->getName(), N);
report->addRange(Callee->getSourceRange());