summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorRobert Wilhelm <robert.wilhelm@gmx.net>2013-08-23 16:11:15 +0000
committerRobert Wilhelm <robert.wilhelm@gmx.net>2013-08-23 16:11:15 +0000
commit25284cc95b87b12c83a54aaf891f3c7d8a521186 (patch)
treec70e8b7b0d66233d13d9a33aa6eccaaa62d003ec /clang/lib/StaticAnalyzer/Core/BugReporter.cpp
parentb09bb1ce19c34981a11a1a0f0239f0c043e3d474 (diff)
downloadbcm5719-llvm-25284cc95b87b12c83a54aaf891f3c7d8a521186.tar.gz
bcm5719-llvm-25284cc95b87b12c83a54aaf891f3c7d8a521186.zip
Use pop_back_val() instead of both back() and pop_back().
No functionality change intended. llvm-svn: 189112
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 1df3053edfc..98f68cfca1f 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -2651,10 +2651,8 @@ void BugReport::pushInterestingSymbolsAndRegions() {
}
void BugReport::popInterestingSymbolsAndRegions() {
- delete interestingSymbols.back();
- interestingSymbols.pop_back();
- delete interestingRegions.back();
- interestingRegions.pop_back();
+ delete interestingSymbols.pop_back_val();
+ delete interestingRegions.pop_back_val();
}
const Stmt *BugReport::getStmt() const {
OpenPOWER on IntegriCloud