diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index 2d222adc56a0..1421cf14e7d3 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/lib/VMCore/Dominators.cpp @@ -19,6 +19,7 @@ #include "llvm/Assembly/Writer.h" #include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/SetOperations.h" +#include "llvm/ADT/SmallPtrSet.h" #include "llvm/Instructions.h" #include using namespace llvm; @@ -462,7 +463,7 @@ DominanceFrontier::calculate(const DominatorTree &DT, DomSetType *Result = NULL; std::vector workList; - std::set visited; + SmallPtrSet visited; workList.push_back(DFCalculateWorkObject(BB, NULL, Node, NULL)); do {