Add range of return value expression in ReturnUndefChecker. Patch by Jim Goodnow II!
llvm-svn: 112569
This commit is contained in:
parent
901176a755
commit
b8691e6081
|
@ -61,6 +61,7 @@ void ReturnUndefChecker::PreVisitReturnStmt(CheckerContext &C,
|
|||
EnhancedBugReport *report =
|
||||
new EnhancedBugReport(*BT, BT->getDescription(), N);
|
||||
|
||||
report->addRange(RetE->getSourceRange());
|
||||
report->addVisitorCreator(bugreporter::registerTrackNullOrUndefValue, RetE);
|
||||
|
||||
C.EmitReport(report);
|
||||
|
|
Loading…
Reference in New Issue