summaryrefslogtreecommitdiffstats
path: root/lib/Checker/ReturnUndefChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/ReturnUndefChecker.cpp')
-rw-r--r--lib/Checker/ReturnUndefChecker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Checker/ReturnUndefChecker.cpp b/lib/Checker/ReturnUndefChecker.cpp
index 52a0b30..73d1890 100644
--- a/lib/Checker/ReturnUndefChecker.cpp
+++ b/lib/Checker/ReturnUndefChecker.cpp
@@ -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);
OpenPOWER on IntegriCloud