forked from OSchip/llvm-project
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:
parent
9a9003d94c
commit
d6c30160e7
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue