summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/nodes.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc
index 0d78771bf4..2b7e384f34 100644
--- a/compiler/optimizing/nodes.cc
+++ b/compiler/optimizing/nodes.cc
@@ -1489,12 +1489,12 @@ bool HInstructionList::FoundBefore(const HInstruction* instruction1,
const HInstruction* instruction2) const {
DCHECK_EQ(instruction1->GetBlock(), instruction2->GetBlock());
for (HInstructionIterator it(*this); !it.Done(); it.Advance()) {
- if (it.Current() == instruction1) {
- return true;
- }
if (it.Current() == instruction2) {
return false;
}
+ if (it.Current() == instruction1) {
+ return true;
+ }
}
LOG(FATAL) << "Did not find an order between two instructions of the same block.";
UNREACHABLE();