summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-09 16:51:23 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-09 16:51:23 +0000
commit8f39941669d7579b226770316f1af39a343a5d2a (patch)
treeb45e692de3f9c339727ece676f41e7d62f37417d
parent14c71c6644cee5cb704fbf750edf1558fa0bf3c5 (diff)
downloadbcm5719-llvm-8f39941669d7579b226770316f1af39a343a5d2a.tar.gz
bcm5719-llvm-8f39941669d7579b226770316f1af39a343a5d2a.zip
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
-rw-r--r--llvm/include/llvm/Support/GenericDomTree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h
index a790d754d20..8751f272cd2 100644
--- a/llvm/include/llvm/Support/GenericDomTree.h
+++ b/llvm/include/llvm/Support/GenericDomTree.h
@@ -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);
OpenPOWER on IntegriCloud