llvm.org GIT mirror llvm / b937c55
Make sure that pop_back_val() result is used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188717 91177308-0d34-0410-b5e6-96231b3b80d8 Jakub Staszak 6 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
169169 vector_.pop_back();
170170 }
171171
172 T pop_back_val() {
172 T LLVM_ATTRIBUTE_UNUSED_RESULT pop_back_val() {
173173 T Ret = back();
174174 pop_back();
175175 return Ret;
426426 this->grow(N);
427427 }
428428
429 T pop_back_val() {
429 T LLVM_ATTRIBUTE_UNUSED_RESULT pop_back_val() {
430430 #if LLVM_HAS_RVALUE_REFERENCES
431431 T Result = ::std::move(this->back());
432432 #else