diff options
| author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-08-10 16:47:20 +0000 |
|---|---|---|
| committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-08-10 16:47:20 +0000 |
| commit | d6c30160e72421517bbc0be1df4a39744628bfe5 (patch) | |
| tree | ecae937a254db74cf334c4a013c393f55095a089 | |
| parent | 9a9003d94cf5e21ea15dbc58d5ec2f6cca6fb8b6 (diff) | |
| download | bcm5719-llvm-d6c30160e72421517bbc0be1df4a39744628bfe5.tar.gz bcm5719-llvm-d6c30160e72421517bbc0be1df4a39744628bfe5.zip | |
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
| -rw-r--r-- | polly/include/polly/ScopInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 592ec55d03b..fd836f4e5dd 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -25,6 +25,7 @@ #include "llvm/Analysis/RegionPass.h" #include "isl/ctx.h" +#include <list> #include <forward_list> #include <deque> @@ -752,7 +753,7 @@ private: /// Max loop depth. unsigned MaxLoopDepth; - typedef std::deque<ScopStmt> StmtSet; + typedef std::list<ScopStmt> StmtSet; /// The statements in this Scop. StmtSet Stmts; |

