diff options
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h b/contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h index ea879d727282..c0e91c8b0bdf 100644 --- a/contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h +++ b/contrib/llvm-project/llvm/include/llvm/Analysis/PhiValues.h @@ -21,7 +21,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" -#include "llvm/ADT/SmallPtrSet.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallVector.h" #include "llvm/IR/PassManager.h" #include "llvm/IR/ValueHandle.h" @@ -40,7 +40,7 @@ class Function; /// it is queried. class PhiValues { public: - using ValueSet = SmallPtrSet<Value *, 4>; + using ValueSet = SmallSetVector<Value *, 4>; /// Construct an empty PhiValues. PhiValues(const Function &F) : F(F) {} @@ -70,8 +70,7 @@ public: FunctionAnalysisManager::Invalidator &); private: - using PhiSet = SmallPtrSet<const PHINode *, 4>; - using ConstValueSet = SmallPtrSet<const Value *, 4>; + using ConstValueSet = SmallSetVector<const Value *, 4>; /// The next depth number to be used by processPhi. unsigned int NextDepthNumber = 1; |