Make StmtSet a list.

With a deque (or any other sequential container) it is not sound to
  take the address of the elements when the container is still under
  construction. With a pointer based container this is save.

llvm-svn: 244459
This commit is contained in:
Johannes Doerfert 2015-08-10 16:47:20 +00:00
parent 9a9003d94c
commit d6c30160e7
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include "llvm/Analysis/RegionPass.h" #include "llvm/Analysis/RegionPass.h"
#include "isl/ctx.h" #include "isl/ctx.h"
#include <list>
#include <forward_list> #include <forward_list>
#include <deque> #include <deque>
@ -752,7 +753,7 @@ private:
/// Max loop depth. /// Max loop depth.
unsigned MaxLoopDepth; unsigned MaxLoopDepth;
typedef std::deque<ScopStmt> StmtSet; typedef std::list<ScopStmt> StmtSet;
/// The statements in this Scop. /// The statements in this Scop.
StmtSet Stmts; StmtSet Stmts;