diff options
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 0018a5b970..d35ed1c543 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -1110,10 +1110,10 @@ bool HLoopInformation::HasExitEdge() const { return false; } -bool HBasicBlock::Dominates(HBasicBlock* other) const { +bool HBasicBlock::Dominates(const HBasicBlock* other) const { // Walk up the dominator tree from `other`, to find out if `this` // is an ancestor. - HBasicBlock* current = other; + const HBasicBlock* current = other; while (current != nullptr) { if (current == this) { return true; |