summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/FixedAddressChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/FixedAddressChecker.cpp')
-rw-r--r--clang/lib/Analysis/FixedAddressChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/FixedAddressChecker.cpp b/clang/lib/Analysis/FixedAddressChecker.cpp
index e30e3d0ce1c..80096dcb70d 100644
--- a/clang/lib/Analysis/FixedAddressChecker.cpp
+++ b/clang/lib/Analysis/FixedAddressChecker.cpp
@@ -59,8 +59,7 @@ void FixedAddressChecker::PreVisitBinaryOperator(CheckerContext &C,
"Using a fixed address is not portable because that "
"address will probably not be valid in all "
"environments or platforms.");
- RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(),
- N);
+ RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription(), N);
R->addRange(B->getRHS()->getSourceRange());
C.EmitReport(R);
}
OpenPOWER on IntegriCloud