[PM] Split DominatorTree into a concrete analysis result object which
[oota-llvm.git] / include / llvm / Support / GenericDomTree.h
index 5a1b18a6987a1f74a687a112e807fcf968733bf0..5c22aa3ff2c4782d3d171eb8a49afca401cdac5d 100644 (file)
@@ -298,7 +298,7 @@ public:
 
   /// compare - Return false if the other dominator tree base matches this
   /// dominator tree base. Otherwise return true.
-  bool compare(DominatorTreeBase &Other) const {
+  bool compare(const DominatorTreeBase &Other) const {
 
     const DomTreeNodeMapType &OtherDomTreeNodes = Other.DomTreeNodes;
     if (DomTreeNodes.size() != OtherDomTreeNodes.size())