diff options
| author | Anna Zaks <ganna@apple.com> | 2011-12-15 01:36:04 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2011-12-15 01:36:04 +0000 |
| commit | 30373150a1a164fa3374ea2e99a258c8e93d732e (patch) | |
| tree | 3e9b42bdf8e11da2586892eeab86fd457decc46d /clang/lib/StaticAnalyzer | |
| parent | b7a0b89ff0e14a747969e08d12964adaf1deeab8 (diff) | |
| download | bcm5719-llvm-30373150a1a164fa3374ea2e99a258c8e93d732e.tar.gz bcm5719-llvm-30373150a1a164fa3374ea2e99a258c8e93d732e.zip | |
[analyzer] Ensure that the order in which checker callbacks are called
is deterministic.
Non-determinism was the reason for the test which caused the earlier
buildbot failures, so re-enable the test.
llvm-svn: 146628
Diffstat (limited to 'clang/lib/StaticAnalyzer')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp b/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp index 13401acf3da..9791e2ecbf9 100644 --- a/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp +++ b/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp @@ -9,12 +9,13 @@ #include "clang/StaticAnalyzer/Core/CheckerRegistry.h" #include "clang/StaticAnalyzer/Core/CheckerOptInfo.h" +#include "llvm/ADT/SetVector.h" using namespace clang; using namespace ento; static const char PackageSeparator = '.'; -typedef llvm::DenseSet<const CheckerRegistry::CheckerInfo *> CheckerInfoSet; +typedef llvm::SetVector<const CheckerRegistry::CheckerInfo *> CheckerInfoSet; static bool checkerNameLT(const CheckerRegistry::CheckerInfo &a, @@ -72,7 +73,7 @@ static void collectCheckers(const CheckerRegistry::CheckerInfoList &checkers, if (opt.isEnabled()) collected.insert(&*i); else - collected.erase(&*i); + collected.remove(&*i); } } |

