summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-08-19 22:47:55 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-08-19 22:47:55 +0000
commitb4eb6adebbbca0d59ff1c99e9806d7916bad5490 (patch)
tree87ae41389f09ef24d77507279db6558f5e182c3c /llvm/lib/Transforms
parentc6ab1f8bfdc4e58acf86e49ba97334c4ac9e0af4 (diff)
downloadbcm5719-llvm-b4eb6adebbbca0d59ff1c99e9806d7916bad5490.tar.gz
bcm5719-llvm-b4eb6adebbbca0d59ff1c99e9806d7916bad5490.zip
Use pop_back_val() instead of both back() and pop_back().
llvm-svn: 188723
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineWorklist.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h b/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h
index 19959c0dcda..11095585b7b 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h
@@ -74,8 +74,7 @@ public:
}
Instruction *RemoveOne() {
- Instruction *I = Worklist.back();
- Worklist.pop_back();
+ Instruction *I = Worklist.pop_back_val();
WorklistMap.erase(I);
return I;
}
OpenPOWER on IntegriCloud