aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CastToStructChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/CastToStructChecker.cpp')
-rw-r--r--lib/Analysis/CastToStructChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CastToStructChecker.cpp b/lib/Analysis/CastToStructChecker.cpp
index bda8ff47bf..ccd4a3333e 100644
--- a/lib/Analysis/CastToStructChecker.cpp
+++ b/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);
}