diff options
| author | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-19 22:47:55 +0000 |
|---|---|---|
| committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-19 22:47:55 +0000 |
| commit | b4eb6adebbbca0d59ff1c99e9806d7916bad5490 (patch) | |
| tree | 87ae41389f09ef24d77507279db6558f5e182c3c /llvm/lib/Transforms | |
| parent | c6ab1f8bfdc4e58acf86e49ba97334c4ac9e0af4 (diff) | |
| download | bcm5719-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.h | 3 |
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; } |

