diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-19 02:56:00 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-19 02:56:00 +0000 |
commit | 0356975cb2119af0343819383bd6db2464c65766 (patch) | |
tree | c9e8205fcf88eaefb8ad1b5a27301ebf5832042e /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 51a4511b72721080b7afe59cf9dd0bf3b9252fad (diff) | |
download | bcm5719-llvm-0356975cb2119af0343819383bd6db2464c65766.tar.gz bcm5719-llvm-0356975cb2119af0343819383bd6db2464c65766.zip |
Make StringSet::insert return pair<iterator, bool> like other self-associative containers
StringSet is still a bit dodgy in that it exposes the raw iterator of
the StringMap parent, which exposes the weird detail that StringSet
actually has a 'value'... but anyway, this is useful for a handful of
clients that want to reference the newly inserted/persistent string data
in the StringSet/Map/Entry/thing.
llvm-svn: 222302
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 9606e64d6f8..59affa1ada1 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -1219,7 +1219,7 @@ static bool ValidateCheckPrefixes() { if (Prefix == "") return false; - if (!PrefixSet.insert(Prefix)) + if (!PrefixSet.insert(Prefix).second) return false; if (!ValidateCheckPrefix(Prefix)) |