summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CastToStructChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/CastToStructChecker.cpp')
-rw-r--r--clang/lib/Analysis/CastToStructChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CastToStructChecker.cpp b/clang/lib/Analysis/CastToStructChecker.cpp
index bda8ff47bf8..ccd4a3333e2 100644
--- a/clang/lib/Analysis/CastToStructChecker.cpp
+++ b/clang/lib/Analysis/CastToStructChecker.cpp
@@ -65,8 +65,7 @@ void CastToStructChecker::PreVisitCastExpr(CheckerContext &C,
"Casting a non-structure type to a structure type "
"and accessing a field can lead to memory access "
"errors or data corruption.");
- RangedBugReport *R = new RangedBugReport(*BT,BT->getDescription().c_str(),
- N);
+ RangedBugReport *R = new RangedBugReport(*BT,BT->getDescription(), N);
R->addRange(CE->getSourceRange());
C.EmitReport(R);
}
OpenPOWER on IntegriCloud