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 /lib/Transforms/IPO | |
parent | 7be3a60617004638513e1db5d5bc435773967afd (diff) |
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 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/DeadTypeElimination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index a5099313b4..d3d4963b63 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -83,7 +83,8 @@ bool DTE::runOnModule(Module &M) { bool Changed = false; TypeSymbolTable &ST = M.getTypeSymbolTable(); - std::set<const Type *> UsedTypes = getAnalysis<FindUsedTypes>().getTypes(); + const SetVector<const Type*> &T = getAnalysis<FindUsedTypes>().getTypes(); + std::set<const Type*> UsedTypes(T.begin(), T.end()); // Check the symbol table for superfluous type entries... // |