diff options
| -rw-r--r-- | llvm/include/Support/SetVector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/Support/SetVector.h b/llvm/include/Support/SetVector.h index be3c692..a6e3f85 100644 --- a/llvm/include/Support/SetVector.h +++ b/llvm/include/Support/SetVector.h @@ -84,11 +84,11 @@ public: /// @returns true iff the element was inserted into the SetVector. /// @brief Insert a new element into the SetVector. bool insert( const value_type& X ) { - std::pair<typename set_type::iterator,bool> insertion_result = set_.insert(X); - if ( insertion_result.second ) { + bool result = set_.insert(X).second; + if ( result ) { vector_.push_back(X); } - return insertion_result.second; + return result; } /// @returns 0 if the element is not in the SetVector, 1 if it is. |
