diff options
author | Anna Zaks <ganna@apple.com> | 2011-08-17 23:00:25 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-08-17 23:00:25 +0000 |
commit | 3a6bdf8f82c8541dbed92106f379ae2bc899c198 (patch) | |
tree | 93ca36a8529259429e77523b4a274707030b3a4b /clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp | |
parent | f901e855336ee566cae4ea40678669228c74815d (diff) | |
download | bcm5719-llvm-3a6bdf8f82c8541dbed92106f379ae2bc899c198.tar.gz bcm5719-llvm-3a6bdf8f82c8541dbed92106f379ae2bc899c198.zip |
Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME.
llvm-svn: 137894
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp index 52089cb37b2..b008f97d99e 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp @@ -73,8 +73,8 @@ void ArrayBoundChecker::checkLocation(SVal l, bool isLoad, // reference is outside the range. // Generate a report for this bug. - RangedBugReport *report = - new RangedBugReport(*BT, BT->getDescription(), N); + BugReport *report = + new BugReport(*BT, BT->getDescription(), N); report->addRange(C.getStmt()->getSourceRange()); C.EmitReport(report); |