summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJulien Lerouge <jlerouge@apple.com>2011-05-13 05:20:42 +0000
committerJulien Lerouge <jlerouge@apple.com>2011-05-13 05:20:42 +0000
commit7e11f9e26d635df98e6318c5ada2523159f6b34b (patch)
tree631ce21ee11b83824d593c8f35069de1c96e3fbb /llvm/include
parentd12d712c84e52298eba2642fc62ac376dc5c0a39 (diff)
downloadbcm5719-llvm-7e11f9e26d635df98e6318c5ada2523159f6b34b.tar.gz
bcm5719-llvm-7e11f9e26d635df98e6318c5ada2523159f6b34b.zip
Fix a source of non determinism in FindUsedTypes, use a SetVector instead of a
set. rdar://9423996 llvm-svn: 131283
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/FindUsedTypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/FindUsedTypes.h b/llvm/include/llvm/Analysis/FindUsedTypes.h
index fc57e1a0469..3e5da572b28 100644
--- a/llvm/include/llvm/Analysis/FindUsedTypes.h
+++ b/llvm/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
OpenPOWER on IntegriCloud