aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PointerSubChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/PointerSubChecker.cpp')
-rw-r--r--lib/Analysis/PointerSubChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/PointerSubChecker.cpp b/lib/Analysis/PointerSubChecker.cpp
index 20279c67b3..4c7906f4be 100644
--- a/lib/Analysis/PointerSubChecker.cpp
+++ b/lib/Analysis/PointerSubChecker.cpp
@@ -66,8 +66,7 @@ void PointerSubChecker::PreVisitBinaryOperator(CheckerContext &C,
BT = new BuiltinBug("Pointer subtraction",
"Subtraction of two pointers that do not point to "
"the same memory chunk may cause incorrect result.");
- RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(),
- N);
+ RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription(), N);
R->addRange(B->getSourceRange());
C.EmitReport(R);
}