aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/PostOrderIterator.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-07-08 13:06:08 +0000
committerDuncan Sands <baldrick@free.fr>2010-07-08 13:06:08 +0000
commit2dac4c1b519feaf1ef63514f07fa16aa5dc7d89a (patch)
treed25ff0f4f1c9631f7d680421ec7e28017a4870a0 /include/llvm/ADT/PostOrderIterator.h
parentcde51108def63dbb68ffd47f8950b8bdd43dd074 (diff)
downloadexternal_llvm-2dac4c1b519feaf1ef63514f07fa16aa5dc7d89a.zip
external_llvm-2dac4c1b519feaf1ef63514f07fa16aa5dc7d89a.tar.gz
external_llvm-2dac4c1b519feaf1ef63514f07fa16aa5dc7d89a.tar.bz2
Use std::vector rather than SmallVector here because SmallVector
causes some versions of gcc to crash when building LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/PostOrderIterator.h')
-rw-r--r--include/llvm/ADT/PostOrderIterator.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h
index 575786f..47e5b2b 100644
--- a/include/llvm/ADT/PostOrderIterator.h
+++ b/include/llvm/ADT/PostOrderIterator.h
@@ -18,7 +18,6 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/ADT/SmallVector.h"
#include <set>
#include <vector>
@@ -52,7 +51,7 @@ class po_iterator : public std::iterator<std::forward_iterator_tag,
// VisitStack - Used to maintain the ordering. Top = current block
// First element is basic block pointer, second is the 'next child' to visit
- SmallVector<std::pair<NodeType *, ChildItTy>, 16> VisitStack;
+ std::vector<std::pair<NodeType *, ChildItTy> > VisitStack;
void traverseChild() {
while (VisitStack.back().second != GT::child_end(VisitStack.back().first)) {