mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 23:57:48 +00:00
Make sure that pop_back_val() result is used.
llvm-svn: 188717
This commit is contained in:
parent
37ddd6bf63
commit
ef4f3f31d3
@ -170,7 +170,7 @@ public:
|
||||
vector_.pop_back();
|
||||
}
|
||||
|
||||
T pop_back_val() {
|
||||
T LLVM_ATTRIBUTE_UNUSED_RESULT pop_back_val() {
|
||||
T Ret = back();
|
||||
pop_back();
|
||||
return Ret;
|
||||
|
@ -427,7 +427,7 @@ public:
|
||||
this->grow(N);
|
||||
}
|
||||
|
||||
T pop_back_val() {
|
||||
T LLVM_ATTRIBUTE_UNUSED_RESULT pop_back_val() {
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
T Result = ::std::move(this->back());
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user