summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/GenericDomTree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h
index 84a935f1fb6..bcaac6b7686 100644
--- a/llvm/include/llvm/Support/GenericDomTree.h
+++ b/llvm/include/llvm/Support/GenericDomTree.h
@@ -319,10 +319,10 @@ protected:
if (Parent != Other.Parent) return true;
if (Roots.size() != Other.Roots.size())
- return false;
+ return true;
if (!std::is_permutation(Roots.begin(), Roots.end(), Other.Roots.begin()))
- return false;
+ return true;
const DomTreeNodeMapType &OtherDomTreeNodes = Other.DomTreeNodes;
if (DomTreeNodes.size() != OtherDomTreeNodes.size())
OpenPOWER on IntegriCloud