diff options
author | Julien Lerouge <jlerouge@apple.com> | 2011-05-13 05:20:42 +0000 |
---|---|---|
committer | Julien Lerouge <jlerouge@apple.com> | 2011-05-13 05:20:42 +0000 |
commit | eea6c95d5d9f202ccb4e90995dc8a4a4c439cec3 (patch) | |
tree | efbc5bfeac285eb237b31c4e26eb36bbffd008f0 /include/llvm/Analysis | |
parent | 7be3a60617004638513e1db5d5bc435773967afd (diff) | |
download | external_llvm-eea6c95d5d9f202ccb4e90995dc8a4a4c439cec3.zip external_llvm-eea6c95d5d9f202ccb4e90995dc8a4a4c439cec3.tar.gz external_llvm-eea6c95d5d9f202ccb4e90995dc8a4a4c439cec3.tar.bz2 |
Fix a source of non determinism in FindUsedTypes, use a SetVector instead of a
set.
rdar://9423996
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/FindUsedTypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Analysis/FindUsedTypes.h b/include/llvm/Analysis/FindUsedTypes.h index fc57e1a..3e5da57 100644 --- a/include/llvm/Analysis/FindUsedTypes.h +++ b/include/llvm/Analysis/FindUsedTypes.h @@ -14,8 +14,8 @@ #ifndef LLVM_ANALYSIS_FINDUSEDTYPES_H #define LLVM_ANALYSIS_FINDUSEDTYPES_H +#include "llvm/ADT/SetVector.h" #include "llvm/Pass.h" -#include <set> namespace llvm { @@ -23,7 +23,7 @@ class Type; class Value; class FindUsedTypes : public ModulePass { - std::set<const Type *> UsedTypes; + SetVector<const Type *> UsedTypes; public: static char ID; // Pass identification, replacement for typeid FindUsedTypes() : ModulePass(ID) { @@ -33,7 +33,7 @@ public: /// getTypes - After the pass has been run, return the set containing all of /// the types used in the module. /// - const std::set<const Type *> &getTypes() const { return UsedTypes; } + const SetVector<const Type *> &getTypes() const { return UsedTypes; } /// Print the types found in the module. If the optional Module parameter is /// passed in, then the types are printed symbolically if possible, using the |