forked from OSchip/llvm-project
Revert "Support: Partially revert r249782 to unbreak clang build"
This reverts commit r249783, fully reinstating r249782. I've fixed the bug in clang: it was a non-const iterator that dereferenced to const (but had an implicit conversion to non-const). llvm-svn: 249850
This commit is contained in:
parent
14c71c6644
commit
8f39941669
|
@ -734,13 +734,13 @@ public:
|
|||
for (typename TraitsTy::nodes_iterator I = TraitsTy::nodes_begin(&F),
|
||||
E = TraitsTy::nodes_end(&F);
|
||||
I != E; ++I) {
|
||||
if (TraitsTy::child_begin(I) == TraitsTy::child_end(I))
|
||||
addRoot(I);
|
||||
if (TraitsTy::child_begin(&*I) == TraitsTy::child_end(&*I))
|
||||
addRoot(&*I);
|
||||
|
||||
// Prepopulate maps so that we don't get iterator invalidation issues
|
||||
// later.
|
||||
this->IDoms[I] = nullptr;
|
||||
this->DomTreeNodes[I] = nullptr;
|
||||
this->IDoms[&*I] = nullptr;
|
||||
this->DomTreeNodes[&*I] = nullptr;
|
||||
}
|
||||
|
||||
Calculate<FT, Inverse<NodeT *>>(*this, F);
|
||||
|
|
Loading…
Reference in New Issue