From d6c30160e72421517bbc0be1df4a39744628bfe5 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 10 Aug 2015 16:47:20 +0000 Subject: [PATCH] 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 --- polly/include/polly/ScopInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 592ec55..fd836f4 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 #include #include @@ -752,7 +753,7 @@ private: /// Max loop depth. unsigned MaxLoopDepth; - typedef std::deque StmtSet; + typedef std::list StmtSet; /// The statements in this Scop. StmtSet Stmts; -- 2.7.4