diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 67c4e42db63..2a8380613e0 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -49,6 +49,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/EquivalenceClasses.h" #include "llvm/ADT/MapVector.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" @@ -2888,7 +2889,7 @@ public: DenseSet &getDependenciesToCheck() { return CheckDeps; } private: - typedef DenseSet PtrAccessSet; + typedef SetVector PtrAccessSet; typedef DenseMap UnderlyingObjToAccessMap; /// \brief Go over all memory access or only the deferred ones if