aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PointerArithChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/PointerArithChecker.cpp')
-rw-r--r--lib/Analysis/PointerArithChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/PointerArithChecker.cpp b/lib/Analysis/PointerArithChecker.cpp
index 5f5badb3d2..93823484e1 100644
--- a/lib/Analysis/PointerArithChecker.cpp
+++ b/lib/Analysis/PointerArithChecker.cpp
@@ -59,8 +59,7 @@ void PointerArithChecker::PreVisitBinaryOperator(CheckerContext &C,
"Pointer arithmetic done on non-array variables "
"means reliance on memory layout, which is "
"dangerous.");
- 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);
}