diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-29 18:03:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-29 18:03:28 +0000 |
commit | 4988a9a278c50fddf46d38331e4a136a91487b7d (patch) | |
tree | fbea33d7604063d3aea3fe64396c3507532b64bd /lib/Analysis/UndefResultChecker.cpp | |
parent | ab6b940f6449566d9f5b188d53f90f8694ebadf4 (diff) |
Kill some unnecessary calls to c_str().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/UndefResultChecker.cpp')
-rw-r--r-- | lib/Analysis/UndefResultChecker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/UndefResultChecker.cpp b/lib/Analysis/UndefResultChecker.cpp index ec12a988e5..acc86dda5a 100644 --- a/lib/Analysis/UndefResultChecker.cpp +++ b/lib/Analysis/UndefResultChecker.cpp @@ -74,8 +74,7 @@ void UndefResultChecker::PostVisitBinaryOperator(CheckerContext &C, << BinaryOperator::getOpcodeStr(B->getOpcode()) << "' expression is undefined"; } - EnhancedBugReport *report = new EnhancedBugReport(*BT, - OS.str().str().c_str(), N); + EnhancedBugReport *report = new EnhancedBugReport(*BT, OS.str(), N); if (Ex) { report->addRange(Ex->getSourceRange()); report->addVisitorCreator(bugreporter::registerTrackNullOrUndefValue, Ex); |